Dump/undump reuse strings

A repeated string in a dump is represented as an index to its first
occurence, instead of another copy of the string.
This commit is contained in:
Roberto Ierusalimschy
2022-12-15 16:44:22 -03:00
parent 3e6818ca87
commit d70a0c91ad
5 changed files with 77 additions and 12 deletions

View File

@@ -31,6 +31,6 @@ LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name);
/* dump one chunk; from ldump.c */
LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w,
void* data, int strip);
void* data, int strip, Table *h);
#endif