fetch_ml/native/common/src/arena_allocator.cpp
Jeremie Fraeys 43d241c28d
feat: implement C++ native libraries for performance-critical operations
- Add arena allocator for zero-allocation hot paths
- Add thread pool for parallel operations
- Add mmap utilities for memory-mapped I/O
- Implement queue_index with heap-based priority queue
- Implement dataset_hash with SIMD support (SHA-NI, ARMv8)
- Add runtime SIMD detection for cross-platform correctness
- Add comprehensive tests and benchmarks
2026-02-16 20:38:04 -05:00

19 lines
289 B
C++

#include "arena_allocator.h"
namespace fetchml::common {
thread_local ArenaAllocator g_arena;
ArenaAllocator* thread_local_arena() {
return &g_arena;
}
void begin_arena_scope() {
g_arena.begin();
}
void end_arena_scope() {
g_arena.end();
}
} // namespace fetchml::common