A place for all things related to the Rust programming language—an open-source systems language that emphasizes performance, reliability, and produc

Rewrote golang project in Rust. It’s 4x times slower now. Why is my Rust code slow? : rust

submited by
Style Pass
2021-07-22 04:00:05

A place for all things related to the Rust programming language—an open-source systems language that emphasizes performance, reliability, and productivity.

Posts must reference Rust or relate to things using Rust. For content that does not, use a text post to explain its relevance.

If criticizing a project on GitHub, you may not link directly to the project's issue tracker. Please create a read-only mirror and link that instead.

Hai, GOpher here! I’m a total newbie to Rust. Tried to rewrite golang downloader for cyberdrop.me as a practice. Having fun so far using Rust 🦀

I basically just repeated this code Golang: https://github.com/giovanni-orciuolo/cyberdrop-downloader into this Rust (my project): https://github.com/wmw9/cyberdrop-dl

So, here comes the problem, I tried to download same album using these downloaders, and Golang downloads album in 11 seconds, while my tool does it’s job 40+ seconds, 4x times slower!!

Leave a Comment