about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-04 00:12:34 -1100
committerEric Wong <e@80x24.org>2021-10-05 23:09:39 +0000
commit88344a50f62a39dcb5673b0aa42ebec7ec44bd71 (patch)
tree9a3f2b461fa205d1c9fc19aa73f2ec68bd19bcbd /lib
parent9211aebf9f65e088430b28216ec1f1f4384be0f9 (diff)
downloadpublic-inbox-88344a50f62a39dcb5673b0aa42ebec7ec44bd71.tar.gz
As with most of our internal-only code, favor smaller
comparisons to reduce memory traffic.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/ExtSearchIdx.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm
index eb7c3d67..3a1856c8 100644
--- a/lib/PublicInbox/ExtSearchIdx.pm
+++ b/lib/PublicInbox/ExtSearchIdx.pm
@@ -120,9 +120,8 @@ sub apply_boost ($$) {
                                 ||
                 $a->[1] <=> $b->[1] # break ties with {xnum}
         } @$xr3;
-        my $top_blob = unpack('H*', $xr3->[0]->[2]);
         my $new_smsg = $req->{new_smsg};
-        return if $top_blob ne $new_smsg->{blob}; # loser
+        return if $xr3->[0]->[2] ne pack('H*', $new_smsg->{blob}); # loser
 
         # replace the old smsg with the more boosted one
         $new_smsg->{num} = $smsg->{num};