about summary refs log tree commit homepage
path: root/script/public-inbox-mda
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-11-11 09:04:56 +0000
committerEric Wong <e@80x24.org>2023-11-11 21:20:41 +0000
commit13d21e1701fe5ff07b1f8017ba54f92965ac1c7a (patch)
tree4351e4275babd864e52ec67751e3e3c2230b63ff /script/public-inbox-mda
parent99eaad164ac2d7565ba61d6ebe9f95b37aa478ca (diff)
downloadpublic-inbox-13d21e1701fe5ff07b1f8017ba54f92965ac1c7a.tar.gz
When learning and injecting new messages ham, we want to avoid
wasting cycles importing the same message into an inbox twice
(once for the To/Cc match and once for the List-Id match).  Our
existing %seen hash turned out to be ineffective since
PublicInbox::Inbox refs get re-blessed to PublicInbox::InboxWritable.
So we stop letting class name influence the hash key for tracking by
using the reference address instead.  We can get the reference address
by performing an arithmetic operation (+ 0) instead of having to
pay the cost of importing Scalar::Util::refaddr.
Diffstat (limited to 'script/public-inbox-mda')
0 files changed, 0 insertions, 0 deletions