mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
670b54f859
This commit introduces memory prefetching to the `bsearch_idx` functions in `src/class.c` and `src/variable.c` to improve performance. A new macro `MRB_MEM_PREFETCH` is defined in `include/mruby/variable.h` which uses `__builtin_prefetch` if available. Co-authored-by: Gemini <gemini@google.com>