Skip to content

Commit

Permalink
asiegel/funk-speedup: better algo
Browse files Browse the repository at this point in the history
  • Loading branch information
asiegel-jt committed Dec 20, 2024
1 parent 5b6bbe0 commit 938c37a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/funk/fd_funk_rec.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fd_funk_rec_query_global( fd_funk_t * funk,
if( hash == ele->map_hash && FD_LIKELY( fd_funk_rec_key_eq( key, ele->pair.key ) ) ) {
for( fd_funk_txn_t const * cur_txn = txn; ; cur_txn = fd_funk_txn_parent( cur_txn, txn_map ) ) {
if( best_result && cur_txn == best_txn ) break; /* Shortcut exit */
if( cur_txn == NULL ?
if( cur_txn ?
fd_funk_txn_xid_eq_root( ele->pair.xid ) :
fd_funk_txn_xid_eq( &cur_txn->xid, ele->pair.xid ) ) {
best_result = ele;
Expand Down

0 comments on commit 938c37a

Please sign in to comment.