Commit Graph

12 Commits

Author SHA1 Message Date
William Batista 69ef3cd675
v1.1.1 2021-02-17 16:47:48 -05:00
William Batista 0bef3c6e40
Added benchmarks + optimizations
As one redditor stated, I'm claiming that my program is fast without benchmarks. Here's said benchmark ;). The benchmarks use Criterion and just see how many magnet url's it can make per second. On the sluggish laptop I'm using at the moment, I get around 50K/s.

Removed redundant if statement in lib.rs for the tr field, increasing performance by 40%.

Made it so that the xl field uses a customized match statement for its output, basically making it so it converts from a str to an int, further increasing performance by 11%.
2021-02-17 16:44:36 -05:00
William Batista f2ae4d9be2
v1.1.0 2021-02-17 10:20:32 -05:00
William Batista f3bf0aeff2
v1.0.5 2021-02-17 08:37:17 -05:00
William Batista 95f912f950
v1.0.4 2021-02-16 20:46:48 -05:00
William Batista b5c8b4b37a
Changed license-file to license in Cargo.toml
This is so that crates.io doesn't think that my license is non-standard
2021-02-16 20:12:29 -05:00
William Batista 028700b588
v1.0.3 2021-02-16 16:08:44 -05:00
William Batista 4fe6e9b828
Incrementing minor version by 1 2021-02-16 15:26:25 -05:00
William Batista 1a54eedf24
Bug fix in Regex
Removed an unnecessary backwards parantheses, renamed project again
2021-02-16 14:55:27 -05:00
William Batista 41164ac5ba
Renamed crate to magnet_url
I didn't realize you can't import crates with a dash in their name :(
2021-02-16 14:37:31 -05:00
William Batista f1cc2a5ca8
Slightly changed name of Cargo project
Just removed the -rs part, in order to fit the Rust naming standards
better
2021-02-16 13:57:19 -05:00
William Batista 0b632edb9a
Added Magnet Parsing Code
The ode basically uses a ton of regex checks to find specific parts of the magnet url, and then chops it up into the Magnet struct.
2021-02-16 13:45:20 -05:00