|
|
|
|
|
by gwynforthewyn
389 days ago
|
|
> Especially interesting for software that are 99.9% of the time waiting for inference to come back to you. In a different domain, I’ve seen a cli tool that requests an oauth token in Python be rewritten to rust and have a huge performance boost. The rust version had requested a token and presented it back to the app in a few milliseconds, but it took Python about five seconds just to load the modules the oauth vendor recommends. That’s a huge performance boost, never mind how much simpler it is to distribute a compiled binary. |
|
Even if a GC'ed language like Go is very fast at allocating/deallocating memory, Rust has no need to allocate/deallocate some amount of memory in the first place. The programmer gives the compiler the tools to optimize memory management, and machines are better at optimizing memory than humans. (Some kinds of optimizations anyway.)