Logo
Explore Help
Register Sign In
tomoaki/hakmem
1
0
Fork 0
You've already forked hakmem
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
2013514f7b58fb4dc56dcca99f6823f58f4b3131
hakmem/core/tiny_fc_api.h

14 lines
364 B
C
Raw Normal View History

Tiny: Enable P0→FC direct path for class7 (1KB) by default + docs - Class7 (1KB): P0 direct-to-FastCache now default ON (HAKMEM_TINY_P0_DIRECT_FC_C7 unset or not '0'). - Keep A/B gates: HAKMEM_TINY_P0_ENABLE, HAKMEM_TINY_P0_DIRECT_FC (class5), HAKMEM_TINY_P0_DIRECT_FC_C7 (class7), HAKMEM_TINY_P0_DRAIN_THRESH (default 32), HAKMEM_TINY_P0_NO_DRAIN, HAKMEM_TINY_P0_LOG. - P0 batch now supports class7 direct fill in addition to class5: gather (drain thresholded → freelist pop → linear carve) without writing into objects, then bulk-push into FC, update meta/active counters once. - Docs: Update direct-FC defaults (class5+class7 ON) in docs/TINY_P0_BATCH_REFILL.md. Notes - Use tools/bench_rs_from_files.sh for RS(hakmem/system) to compare runs across CPUs. - Next: parameter sweep for class7 (FC cap/batch limit/drain threshold) and perf counters A/B.
2025-11-09 23:15:02 +09:00
#ifndef TINY_FC_API_H
#define TINY_FC_API_H
#include <stddef.h>
// Push up to n pointers into the thread-local FastCache for class_idx.
// Returns the number of items actually pushed (<= room).
int tiny_fc_push_bulk(int class_idx, void** arr, int n);
// Returns current free room in FastCache for class_idx (cap - top).
int tiny_fc_room(int class_idx);
#endif
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 66ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API