MCPcopy Create free account
hub / github.com/KentBeck/BPlusTree3 / node_prefetch_child

Function node_prefetch_child

python/bplustree_c_src/bplustree.h:103–109  ·  view source on GitHub ↗

Prefetch child pointer for cache optimization */

Source from the content-addressed store, hash-verified

101
102/* Prefetch child pointer for cache optimization */
103static inline BPlusNode *node_prefetch_child(BPlusNode *node, int index) {
104 BPlusNode *child = node_get_child(node, index);
105#ifdef PREFETCH_HINTS
106 PREFETCH(child, 0, 3);
107#endif
108 return child;
109}
110
111/* Function prototypes */
112

Callers 1

tree_find_leafFunction · 0.85

Calls 1

node_get_childFunction · 0.85

Tested by

no test coverage detected