Re: The Case for Rust (in any system)

From: Joe Schaefer <joesuf4_at_gmail.com>
Date: Fri, 13 Sep 2024 12:53:05 UTC
Ok big guy. You win.

On Fri, Sep 13, 2024 at 4:53 AM David Chisnall <theraven@freebsd.org> wrote:

> 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
>
>
>