4 ms·
Wild guess: the web client it includes is most of that. Even if it cleans up the instance of it after, the code itself is still sitting in memory, and that may
by karatestomp 6y ago
Wild guess: the web client it includes is most of that. Even if it cleans up the instance of it after, the code itself is still sitting in memory, and that may be quite large. It also seems to include a JSON parser, which might be a bit large.
I'd expect something like this grabbing some dead-simple format over a TCP socket, rather than importing a Web library, to be well under a MB, certainly, and even that seems not to be setting a very low bar, to me. Though those are expectations based on C, not Rust.