diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-12-28 15:05:01 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-12-28 15:05:01 -0300 |
commit | abf8b1cd4a798fada026b4046e9dbc08791963f2 (patch) | |
tree | 1a1466ff782cee004c83857554612fbfee38fc2e /llex.c | |
parent | 2a307f898be2716638e7ac30d119f7cd9bbbe096 (diff) | |
download | lua-abf8b1cd4a798fada026b4046e9dbc08791963f2.tar.gz lua-abf8b1cd4a798fada026b4046e9dbc08791963f2.tar.bz2 lua-abf8b1cd4a798fada026b4046e9dbc08791963f2.zip |
Small optimization in 'luaH_psetshortstr'
Do not optimize only for table updates (key already present).
Creation of new short keys in new tables can be quite common in
programs that create lots of small tables, for instance with
constructors like {x=e1,y=e2}.
Diffstat (limited to 'llex.c')
0 files changed, 0 insertions, 0 deletions