digitalmars.D.learn - Better multithreading with D
- solidstate1991 (6/6) Apr 20 2018 In order to call a function multiple time at parallel (rendering
- 12345swordy (3/9) Apr 20 2018 Did you attempt to create a memory pool with the GC? Any memory
In order to call a function multiple time at parallel (rendering function, very well parallelizable), but in order to push the CPU to it's limits I have to get some form of parallelization. Currently I'm using parallel foreach, which isn't very nice, and since it uses GC allocation that creates some performance impact from time to time.
Apr 20 2018
On Saturday, 21 April 2018 at 02:08:24 UTC, solidstate1991 wrote:In order to call a function multiple time at parallel (rendering function, very well parallelizable), but in order to push the CPU to it's limits I have to get some form of parallelization. Currently I'm using parallel foreach, which isn't very nice, and since it uses GC allocation that creates some performance impact from time to time.Did you attempt to create a memory pool with the GC? Any memory allocation will take time, whatever it's CG or manual.
Apr 20 2018