- node_t *n = hash_search(node_id_cache, id);
- if(!n) {
- node_t tmp = {.id = *id};
- n = splay_search(node_id_tree, &tmp);
- if(n)
- hash_insert(node_id_cache, id, n);
- }
-
- return n;
+ node_t n = {.id = *id};
+ return splay_search(node_id_tree, &n);