4 ms·
> How can a GC'ed language be faster than a non-GC'ed language? Besides simple numeric evaluation, D is generally more heap-allocation-heavy than Rust, so it ca
by rpedela 11y ago
> How can a GC'ed language be faster than a non-GC'ed language? Besides simple numeric evaluation, D is generally more heap-allocation-heavy than Rust, so it can never beat Rust.
I would be interested in benchmarks showing that. Do you have any?
- deleted 11y ago[deleted]
- yokohummer7 11y agoSorry, I don't have specific numbers. I was saying generally for all GC'ed languages.
- qznc 11y agoD has lots of tools to avoid heap allocation. There is no reason why D should use more heap allocations than Rust. A GC might only encourage you to use more heap allocations.