HF RL Explorer

Lua Table Performance: Replace Go Map with Hybrid Array/Hash Table

Lua Table Performance: Replace Go Map with Hybrid Array/Hash Table: a task in LegoFlow-SWE (Harbor dataset). Current behavior: The Lua runtime uses Go's built-in map type to implement tables. This leads to significant per‑table memory overhead and CPU cost during repeated insertion, lookup, and…

The task

**Current behavior:** The Lua runtime uses Go's built-in `map` type to implement tables. This leads to significant per‑table memory overhead and CPU cost during repeated insertion, lookup, and removal, noticeable especially when many small tables are created or when tables store large numbers of integer keys.

Part of Lego-X/LegoFlow-SWE.