# Help with real-time performance needed

**URL:** <https://discourse.julialang.org/t/help-with-real-time-performance-needed/87635>\
**Category:** Performance\
**Tags:** garbage-collection, sockets, threads, makie\
**Created:** [September 22, 2022, 11:02am UTC](https://discourse.julialang.org/t/help-with-real-time-performance-needed/87635 "2022-09-22T11:02:20Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![tt1234567](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Post date:** [September 23, 2022, 10:47am UTC](https://discourse.julialang.org/t/help-with-real-time-performance-needed/87635/16 "2022-09-23T10:47:02Z")

</div>

I’ve now tried Julia 1.9 with a few different values for `--heap-size-hint=<size>`. I haven’t tested it extensively but It does seem to stabilise things a bit for a value of around 5M. It does still drop data occasionally and the CPU usage is high but at least it’s fairly constant. Previously CPU would start at 10% and end up after 20 min at around 25%, dropping data massively.

> [@Palli](#):
>
> Whatever you do, try disabling threads, it can slow down the GC a lot:

Disabling threads doesn’t work in my case as it means data can’t be queued while processing and display is going on.

I’d really like to try using a non-allocating `recv_into!()`. I’d try writing one myself but just I don’t know how to go about it. Is there a way of submitting a feature request for Sockets?

---

_[View the full topic](https://discourse.julialang.org/t/help-with-real-time-performance-needed/87635)._
