i have a cli python code to read a zip file and then get a file from it, writing an equivalent code in @rustlang has no problem, but then i found a huge gap between the performance, rust cli was about x15 slower !!, so i take a step back and found that the bottleneck was in....
-
Show this thread
-
was in IO operations, i'm using the `zip` crate https://crates.io/crates/zip which is very good crate tbh, but in it's api there is a method to get the file by it's name, actually it's not the file it self, it is a reference to the underlying reader, then you have to read that....
2 replies 0 retweets 1 likeShow this thread -
into another Vec, the bottleneck occurs in calling `read` method in buffer, which every times trying to use syscall, so it hearts the performance.
1 reply 0 retweets 1 likeShow this thread -
-
Replying to @rustlang
YES, it gives a huge boost, it's now about ~1.5x faster than python implantation
1 reply 0 retweets 4 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

