Skip to content

Make LuaTable.Clear method that preserves LuaTable capacity #196

@JagYayu

Description

@JagYayu

I hope that the LuaTable.Clear function can preserve the LuaTable’s original capacity after clearing all elements, without releasing the internal heap data -- similar to table.clear in LuaJIT.
This would allow me to reuse tables in high-frequency scenarios and reduce GC pressure by using cached/recycled tables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions