Phase 1: Box Theory refactoring + include reduction
Phase 1-1: Split hakmem_tiny_free.inc (1,711 → 452 lines, -73%) - Created tiny_free_magazine.inc.h (413 lines) - Magazine layer - Created tiny_superslab_alloc.inc.h (394 lines) - SuperSlab alloc - Created tiny_superslab_free.inc.h (305 lines) - SuperSlab free Phase 1-2++: Refactor hakmem_pool.c (1,481 → 907 lines, -38.8%) - Created pool_tls_types.inc.h (32 lines) - TLS structures - Created pool_mf2_types.inc.h (266 lines) - MF2 data structures - Created pool_mf2_helpers.inc.h (158 lines) - Helper functions - Created pool_mf2_adoption.inc.h (129 lines) - Adoption logic Phase 1-3: Reduce hakmem_tiny.c includes (60 → 46, -23.3%) - Created tiny_system.h - System headers umbrella (stdio, stdlib, etc.) - Created tiny_api.h - API headers umbrella (stats, query, rss, registry) Performance: 4.19M ops/s maintained (±0% regression) Verified: Larson benchmark 2×8×128×1024 = 4,192,128 ops/s 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
12
core/tiny_api.h
Normal file
12
core/tiny_api.h
Normal file
@ -0,0 +1,12 @@
|
||||
// tiny_api.h - API headers for Tiny allocator
|
||||
// Consolidates Phase 2B API modules
|
||||
|
||||
#ifndef TINY_API_H
|
||||
#define TINY_API_H
|
||||
|
||||
#include "hakmem_tiny_stats_api.h" // Phase 2B: Stats API
|
||||
#include "hakmem_tiny_query_api.h" // Phase 2B-1: Query API
|
||||
#include "hakmem_tiny_rss_api.h" // Phase 2B-2: RSS Utils
|
||||
#include "hakmem_tiny_registry_api.h" // Phase 2B-3: Registry
|
||||
|
||||
#endif // TINY_API_H
|
||||
Reference in New Issue
Block a user