]> Sergey Matveev's repositories - public-inbox.git/commit
feed: avoid unnecessary map loop in non-over path
authorEric Wong <e@80x24.org>
Thu, 4 Aug 2022 08:17:02 +0000 (08:17 +0000)
committerEric Wong <e@80x24.org>
Thu, 4 Aug 2022 20:09:35 +0000 (20:09 +0000)
commitb896b1043b81274b8b1737320c49f3fb7ce9f842
tree74d7c061a826edf3c7917c63c0bb99f1afeee64e
parent956fa442de1699e078cc7babb7a34af83d143307
feed: avoid unnecessary map loop in non-over path

We can bless objects while doing the initial insertion to avoid
extra the extra map iteration and temporary array(s).  Fewer ops
means memory savings for the likely case of ->over users, too.
lib/PublicInbox/Feed.pm