On 4/1/21 9:01 PM, H. S. Teoh wrote:

> 6) (Not described in the thread, but applied later) Reduce GC load even
>     further by reusing an array that was being allocated per iteration in
>     an inner loop before.

For those who prefer a video description with some accent :) here is how to apply that technique:

  https://www.youtube.com/watch?v=dRORNQIB2wA&t=787s

And here is how to profile[1] the program to see where the allocations occur:

  https://www.youtube.com/watch?v=dRORNQIB2wA&t=630s

Ali

[1] Unfortunately, the profiler has some bugs, which cause segmentation faults in some cases.

Reply via email to