mysticatea / regexpp

The regular expression parser for ECMAScript.
MIT License
153 stars 15 forks source link

Separate method for parsing unicode #26

Closed conartist6 closed 2 years ago

conartist6 commented 2 years ago

Unicode support is easily the most expensive part of using this package, but there are many possible usages of it that do not require unicode at all, mine included. Unfortunately it is impossible to avoid the cost of your unicode implementation as there is no way to import the library that does not also import unicode, and no tree-shaking engine can remove code that is triggered by a runtime option to a used function.

This would require a breaking change to fix, but it is worth fixing.

conartist6 commented 2 years ago

I'm going to close this for now, as I think instead of becoming more efficient by dropping unicode parsing I'll instead just provide full unicode support (in @iter-tools/regex).