nitely / nim-regex

Pure Nim regex engine. Guarantees linear time matching
https://nitely.github.io/nim-regex/
MIT License
227 stars 21 forks source link

do not use sets of ints to check chars #120

Closed metagn closed 1 year ago

metagn commented 1 year ago

someChar.ord has the type int, and sets with elements of type int default to set[range[0..65535]] which uses 8192 bytes of memory. Change these into multiple range checks or checks with set[char].