Skip to content

Conversation

@wmltogether
Copy link
Contributor

Pass nextvar.lua tests
Prevent superlarge array resize in LuaTable

Pass nextvar.lua tests
Fix Coroutine tests
@wmltogether
Copy link
Contributor Author

wmltogether commented Apr 10, 2025

Note: if key is a large number, EnsureArrayCapacity is not a good idea, really.
The Lua table needs to be reimplemented to prevent the internal array from being unintentionally expanded.

Add Test_TableResize ,Execution time has been reduced from 628 ms to 7 ms.

Limit Max Array to 1 << 24
Asura336 added a commit to Asura336/Lua-CSharp that referenced this pull request Apr 13, 2025
@Akeit0
Copy link
Collaborator

Akeit0 commented Apr 15, 2025

Thanks!

@Akeit0 Akeit0 merged commit 321d25e into nuskey8:main Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants