You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
100kb is not really "much ram". However, the module could probably be removed from sys.modules and the lexer.py module scope after this code has been executed so it can be garbage-collected...
Either way, the regex probably uses not much less memory since it contains all these chars.
IMO using non-ascii chars in identifiers is an awful idea, but I guess you can always find someone who doesn't code in english and Jinja is too mature to remove something like this anyway...
jinja2._stringdefs
makes large strings for each unicode category.They eat 100KB+ RAM. But none of them are used.
Only
xid_start
andxid_continue
are used byjinja2.lexer
.Would you remove category strings?
Your Environment
The text was updated successfully, but these errors were encountered: