lua-users home
lua-l archive

Re: Memory usage stats for 5.2 vs 5.3

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Thought I'd share some memory usage numbers from my tests of 5.3.0
> (rc4) compared to 5.2.3. [...]
Can you do a little experiment?
- In 5.2.3, do the following change in file lobject.h: 
--- lobject.h	2013年04月12日 18:48:47	2.71.1.1
+++ lobject.h	2015年01月13日 11:55:58
@@ -414,6 +414,7 @@
 lu_byte extra; /* reserved words for short strings; "has hash" for longs */
 unsigned int hash;
 size_t len; /* number of characters in string */
+ void *dummy;
 } tsv;
 } TString;
 
Then, recompile Lua 5.2.3 and redo your measurements.
Many thanks,
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /