OptiPixel library

We refactored the IndexManager and removed the use of an index subarray in favor of a more memory-efficient approach. As a result, memory usage was reduced while the free-index search performance degraded only slightly. This is an intentional trade-off: developers should be aware that reserving an index can be an expensive operation, so in this case we prioritized memory savings over peak allocation speed. If a different profile is required (for example, minimal allocation latency), the previous structure can be restored or a configurable mode added.

1 Like