flre icon indicating copy to clipboard operation
flre copied to clipboard

Use raw arrays for uppercase/lowercase

Open Alexey-T opened this issue 5 years ago • 1 comments

Uppercase/lowercase funcs in regex must be very fast. PUCU gives not fast funcs. (some [] indexes, etc). so engine could make internal arrays for first 0xFFFF chars like array[word] of word; they have big size but fast.

Alexey-T avatar Aug 22 '20 20:08 Alexey-T

It is also not fully correct. E.g. K (U+212a) should match K or k case insensitively

But table lookups can be rather slow on modern systems when the table is not in the cache

benibela avatar Sep 03 '20 10:09 benibela