Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 2
    I can't comment on the threading part, but from the profile output compute-op-output and compute are apparently consing a lot and taking a lot of time. You may want to focus on optimizing those functions. Also, is there perhaps a data structure that keeps growing in memory? Commented Apr 11, 2020 at 9:36
  • 2
    Please don't post images of the screen: they are within epsilon of useless. If you want people to say things about the code post the code. If you want people to say things about the output from the profiler post output from the profiler; if you want people to be able to see the output from top, post that. As a friend of mine once used to say 'cut and paste is enabled'. See how to ask. Commented Apr 11, 2020 at 10:11
  • "the concern is the unstability of the platform, if using sustained heavy computation and allocation": the platform is stable, since it eventually returned a result despite heavy computation and allocation during 40 minutes. Commented Apr 14, 2020 at 8:00
  • Maybe I didn't explain well, but the program itself took 20min, the thing is that it then spent 40 min after the program ran, using 100% CPU, which doesn't seem ok, does that make sense? Commented Apr 14, 2020 at 11:05
  • This question is not reproducible. The rules of stack overflow state that you must provide a minimal, complete, reproducible description of your problem. Some ideas: you’re having multi threading/locking issues; you use too much memory and start swapping; you’re program is trying to print some massive object (maybe with pretty printing and print-circle); you are building a profile in ram and slowly writing it to disk/analysing it once your code has run. Commented Apr 14, 2020 at 20:16