Re: The Case for Rust (in any system)

From: Paul Floyd <paulf2718_at_gmail.com>
Date: Fri, 13 Sep 2024 11:28:43 UTC

On 13-09-24 06:17, David Chisnall wrote:
> On 13 Sep 2024, at 02:34, Joe Schaefer <joesuf4@gmail.com> wrote:
>>
>> I just completed a month long project to port a C++ codebase that used vectors for array allocations back to using C‘s calloc. For a 15% increase in memory footprint, batch jobs that took three days to complete now finish in 10-12 hours.
> 
> This sounds highly dubious given that std::vector is a very thin wrapper around malloc. From your description, I would expect the same speedup with some judicial use of .reserve().

And I forgot to say.

I'm sure that John Lakos has an opinion on the use of PMR that could 
well be applicable in this case.

Does Rust have anything like PMR?

A+
Paul