]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchthread: reduce indirection by removing container
authorEric Wong <e@yhbt.net>
Fri, 17 Apr 2020 09:28:49 +0000 (09:28 +0000)
committerEric Wong <e@yhbt.net>
Fri, 17 Apr 2020 09:52:26 +0000 (09:52 +0000)
We can rid ourselves of a layer of indirection by subclassing
PublicInbox::Smsg instead of using a container object to hold
each $smsg.  Furthermore, the `{id}' vs. `{mid}' field name
confusion is eliminated.

This reduces the size of the $rootset passed to walk_thread by
around 15%, that is over 50K memory when rendering a /$INBOX/
landing page.


No differences found