Class NativeMemorySegmentPool

java.lang.Object
org.episteme.nativ.util.NativeMemorySegmentPool
All Implemented Interfaces:
AutoCloseable, MemorySegmentPool

public class NativeMemorySegmentPool extends Object implements MemorySegmentPool
A pool for native memory segments to reduce allocation overhead in tight loops.

This class is not thread-safe.

Since:
1.1
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • NativeMemorySegmentPool

      public NativeMemorySegmentPool(Arena arena)
      Creates a new pool using a shared arena.
      Parameters:
      arena - the arena to allocate from
  • Method Details