Skip to content

why is binary size still large after disabling unicode? #790

Answered by BurntSushi
d3lm asked this question in Q&A
Discussion options

You must be logged in to vote

See: #583

See: #613

I don't know whether it's "normal." All regex engines that I think of as "fast" have a boatload of code in them. A slower or less featureful regex engine could likely be implemented in much less code.

So basically I have disabled all default features and have re-enabled std and perf.

Well, perf adds to the binary size and the number of dependencies. If you care most about binary size, then disable perf.

If you don't need Unicode and your regexes are known statically, then you could also use regex-automata to embed a DFA into your binary.

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@d3lm
Comment options

Answer selected by BurntSushi
Comment options

You must be logged in to vote
8 replies
@BurntSushi
Comment options

@d3lm
Comment options

@RReverser
Comment options

@d3lm
Comment options

@RReverser
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants