Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local list = {}
- local pcall, unpack, sleep = pcall, unpack, sleep
- for i = 1, 0x8ffff do
- list[ i ] = false
- local ok, err = pcall( unpack, list, 1, i )
- if sleep and i % 1024 == 0 then
- sleep()
- end
- if not ok then
- print( _VERSION, jit and "LuaJIT" or "" )
- print( "MAX_UNPACK_SIZE = " .. i - 1 )
- print( err )
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment