Re: The Case for Rust (in any system)
- Reply: Aryeh Friedman : "Re: The Case for Rust (in any system)"
- Reply: Joe Schaefer : "Re: The Case for Rust (in any system)"
- In reply to: Joe Schaefer : "Re: The Case for Rust (in any system)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Sep 2024 08:53:43 UTC
On 13 Sep 2024, at 08:59, Joe Schaefer <joesuf4@gmail.com> wrote: > > That‘s because you are a dork. In case you were wondering, that was the point when you lost all credibility in this thread. > The point isn’t that calloc calls are faster than vector allocations. The point is that by changing the way you deal with arrays (as objects that manage their own size, versus managing the sizes using up front preallocations and dealing with their growth yourself), we can exchange function calls for pointer dereferences. And that’s precisely the change you get by calling .reserve with the expected size. And the speedup tends to be exactly what you claimed you got. David