From 35798ba169e0dcf6249c4061f4b281d759de39db Mon Sep 17 00:00:00 2001 From: Alex Siegel Date: Fri, 20 Dec 2024 20:56:29 +0000 Subject: [PATCH] asiegel/funk-speedup: better algo --- src/funk/fd_funk_rec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/funk/fd_funk_rec.c b/src/funk/fd_funk_rec.c index db5f6c9afb..708915e0e0 100644 --- a/src/funk/fd_funk_rec.c +++ b/src/funk/fd_funk_rec.c @@ -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 ? + 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;