Remove regex crate and do manual parsing#32
Remove regex crate and do manual parsing#32oblique wants to merge 1 commit intoabaumhauer:masterfrom
Conversation
|
Parsing also includes some of the flexibility that regex crate introduced. |
This reduces the binary size from 1.4mb to 264kb. Fixes abaumhauer#31
|
I'd like to add that this patch improves the runtime of one of my benchmarks by 10x My use case is parsing MAC addresses through a SQLite3 custom extension. The regex-based version, latest on crates.io, takes ~11s to process 92428 MAC address records (runtime provided is combined of 4 runs through a dirty benchmark script in python), while this patch takes ~1s. Running perf shows that regex dwarfs the runtime of pretty much every other function. I've attached some screenshots from |
|
@chrismooredev It looks like this crate is abandoned |
I moved to using advmac crate |


This reduces the binary size from 1.4mb to 264kb.
Fixes #31