Optimize C6 heavy and C7 ultra performance analysis with refined design refinements
- Update environment profile presets and visibility analysis - Enhance small object and tiny segment v4 box implementations - Refine C7 ultra and C6 heavy allocation strategies - Add comprehensive performance metrics and design documentation 🤖 Generated with Claude Code Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@ -42,6 +42,7 @@
|
||||
#include "../box/tiny_hotheap_v2_box.h" // TinyHotHeap v2 (Phase31 A/B)
|
||||
#include "../box/smallobject_hotbox_v3_box.h" // SmallObject HotHeap v3 skeleton
|
||||
#include "../box/smallobject_hotbox_v4_box.h" // SmallObject HotHeap v4 (C7 stub)
|
||||
#include "../box/tiny_c7_ultra_box.h" // C7 ULTRA stub (UF-1, delegates to v3)
|
||||
#include "../box/tiny_front_v3_env_box.h" // Tiny front v3 snapshot gate
|
||||
#include "../box/tiny_heap_env_box.h" // ENV gate for TinyHeap front (A/B)
|
||||
#include "../box/tiny_route_env_box.h" // Route snapshot (Heap vs Legacy)
|
||||
@ -140,6 +141,18 @@ static inline void* malloc_tiny_fast(size_t size) {
|
||||
|
||||
tiny_front_alloc_stat_inc(class_idx);
|
||||
|
||||
// C7 ULTRA stub (UF-1): delegates to v3, ENV gated
|
||||
if (class_idx == 7 &&
|
||||
tiny_front_v3_enabled() &&
|
||||
tiny_front_v3_c7_ultra_enabled() &&
|
||||
small_heap_v3_c7_enabled()) {
|
||||
void* ultra_p = tiny_c7_ultra_alloc(size);
|
||||
if (ultra_p) {
|
||||
return ultra_p;
|
||||
}
|
||||
// fallback to existing route on miss
|
||||
}
|
||||
|
||||
switch (route) {
|
||||
case TINY_ROUTE_SMALL_HEAP_V3: {
|
||||
void* v3p = so_alloc((uint32_t)class_idx);
|
||||
@ -241,6 +254,15 @@ static inline int free_tiny_fast(void* ptr) {
|
||||
void* base = (void*)((char*)ptr - 1);
|
||||
tiny_front_free_stat_inc(class_idx);
|
||||
|
||||
// C7 ULTRA stub (UF-1): delegates to v3, ENV gated
|
||||
if (class_idx == 7 &&
|
||||
tiny_front_v3_enabled() &&
|
||||
tiny_front_v3_c7_ultra_enabled() &&
|
||||
small_heap_v3_c7_enabled()) {
|
||||
tiny_c7_ultra_free(base);
|
||||
return 1;
|
||||
}
|
||||
|
||||
// C7 v3 fast classify: bypass classify_ptr/ss_map_lookup for clear hits
|
||||
if (class_idx == 7 &&
|
||||
tiny_front_v3_enabled() &&
|
||||
|
||||
Reference in New Issue
Block a user