Plan for D
Araq
rumpf_a at web.de
Thu May 20 21:09:22 UTC 2021
On Thursday, 20 May 2021 at 18:18:40 UTC, Paulo Pinto wrote:
> Looking forward to the Nim RC beating these benchmarks.
Benchmarks can usually be tweaked to produce the outcome you're
after. I usually get better latency and memory consumption and
worse throughput with "Nim RC". However, the Nim compiler itself
is over 100K lines of code and 22% faster when compiled with "Nim
RC", so in this case the throughput is better. That particular
result might be machine specific though as I tested it on an M1
indeed. :-)
The fact that the RC algorithm is oblivious to the involved heap
sizes and to the amount of alive data makes it a nice default
though -- works well when you use much memory or when you have
little heap sizes.
But Nim actually bets on RC because it's much more amenable to
manual optimizations and because it works well with custom memory
management, making it a good fit for "systems programming".
More information about the Digitalmars-d
mailing list