unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* [PATCH 0/2] searchthread: minor cleanups and API change
@ 2016-12-21  7:36 Eric Wong
  2016-12-21  7:36 ` [PATCH 1/2] searchthread: update comment about loop prevention Eric Wong
  2016-12-21  7:36 ` [PATCH 2/2] searchthread: simplify API and remove needless OO Eric Wong
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Wong @ 2016-12-21  7:36 UTC (permalink / raw)
  To: meta

Couldn't find more ways to speed things up, but it's looking
pretty good.  walk_thread could probably be moved into SearchThread.pm
(from View.pm), though

I also read enough of the Perl5 source code to learn
"scalar keys %hash" and "scalar values %hash"
follow the same code path and is optimized to not generate
an intermediate array :)

Eric Wong (2):
      searchthread: update comment about loop prevention
      searchthread: simplify API and remove needless OO

 lib/PublicInbox/SearchThread.pm | 39 ++++++++++++++-------------------------
 lib/PublicInbox/SearchView.pm   | 25 ++++++++++++-------------
 lib/PublicInbox/View.pm         | 19 ++++++++-----------
 t/thread-cycle.t                |  8 ++++----
 4 files changed, 38 insertions(+), 53 deletions(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-21  7:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-21  7:36 [PATCH 0/2] searchthread: minor cleanups and API change Eric Wong
2016-12-21  7:36 ` [PATCH 1/2] searchthread: update comment about loop prevention Eric Wong
2016-12-21  7:36 ` [PATCH 2/2] searchthread: simplify API and remove needless OO Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).