]> Sergey Matveev's repositories - public-inbox.git/commit - lib/PublicInbox/View.pm
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)
commitd0147582e289fdd4cdd84e91d8b0f8ae9c230124
tree02d60802e4eef79bbbe7f9ca4a2210f2d3a07f28
parentc23c96b1da7bfff3efe64ad415c0feb424d34559
searchthread: reduce indirection by removing container

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.
Documentation/technical/data_structures.txt
lib/PublicInbox/SearchThread.pm
lib/PublicInbox/SearchView.pm
lib/PublicInbox/View.pm
t/thread-cycle.t