D Language Foundation October 2023 Quarterly Meeting Summary

Sergey kornburn at yandex.ru
Wed Dec 6 18:17:57 UTC 2023


On Wednesday, 6 December 2023 at 16:28:08 UTC, Mike Parker wrote:
> ### Bastiaan
> They'd found the multithreaded performance worse than the 
> Pascal version. He said that execution time increased with more 
> threads and that it didn't matter how many threads you throw at 
> it. It's the latter problem he was focused on at the moment.
>
> At first, they'd suspected the GC, but it turned out to be 
> contention resulting from heap allocation. In Pascal, they'd 
> heavily used variable-length arrays. For those, the length is 
> determined at run time, but it's fixed. Since they can't grow, 
> they're put on the stack. This makes them quite fast and avoids 
> the global lock of the heap.

I am kindly invite Bastiaan and his team to participate in this 
competition :) https://github.com/jinyus/related_post_gen

fixed-sized arrays will suit perfectly for the task, and it also 
has multithreading comparison! Pascal should be good over there


More information about the Digitalmars-d-announce mailing list