Why is std.regex slow, well here is one reason!

Walter Bright newshound2 at digitalmars.com
Thu Feb 23 23:11:56 UTC 2023


On 2/23/2023 12:50 PM, Richard (Rikki) Andrew Cattermole wrote:
> Everything about std.uni and its tables is about tradeoffs. It is designed to be 
> opt-in and to be small in binary. If you didn't care about binary sizes it would 
> be easy enough to have it all in ROM ready to go, but it'll be over 8mb if you 
> did that (mine is).

Another way is to generate the tables into a separate file when Phobos is built, 
and import that file.


> On that note, I recently looked at Unicode symbols for identifiers; we can 
> shrink the is alpha LUT in dmd to ~1/9th its current size by updating to C11 :)

Let's do it!


> Unicode keeps growing, which is good for compilers, but horrible for standard 
> libraries!

Unicode is a brilliant idea, but its doom comes from the execrable decision to 
apply semantic meaning to glyphs.


More information about the Digitalmars-d mailing list