user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 04/10] inboxwritable: _init_v1: set created_at ASAP
  2020-12-23  8:38  6% [PATCH 00/10] start optimizing startup w/ ALL->misc Eric Wong
@ 2020-12-23  8:38  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2020-12-23  8:38 UTC (permalink / raw)
  To: meta

This ensures we have UIDVALIDITY to index earlier
rather than later for v1 inboxes, matching v2 behavior.
---
 lib/PublicInbox/InboxWritable.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/PublicInbox/InboxWritable.pm b/lib/PublicInbox/InboxWritable.pm
index c0e88f3d..69275bb0 100644
--- a/lib/PublicInbox/InboxWritable.pm
+++ b/lib/PublicInbox/InboxWritable.pm
@@ -46,12 +46,13 @@ sub _init_v1 {
 		require PublicInbox::Msgmap;
 		my $sidx = PublicInbox::SearchIdx->new($self, 1); # just create
 		$sidx->begin_txn_lazy;
+		my $mm = PublicInbox::Msgmap->new($self->{inboxdir}, 1);
 		if (defined $skip_artnum) {
-			my $mm = PublicInbox::Msgmap->new($self->{inboxdir}, 1);
 			$mm->{dbh}->begin_work;
 			$mm->skip_artnum($skip_artnum);
 			$mm->{dbh}->commit;
 		}
+		undef $mm; # ->created_at set
 		$sidx->commit_txn_lazy;
 	} else {
 		open my $fh, '>>', "$self->{inboxdir}/ssoma.lock" or

^ permalink raw reply related	[relevance 7%]

* [PATCH 00/10] start optimizing startup w/ ALL->misc
@ 2020-12-23  8:38  6% Eric Wong
  2020-12-23  8:38  7% ` [PATCH 04/10] inboxwritable: _init_v1: set created_at ASAP Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2020-12-23  8:38 UTC (permalink / raw)
  To: meta

-nntpd [PATCH 5/10] is the single most significant improvements.

And some cleanups, and some general improvements independent of
indexing in patches 7-10 (patch 8 is already superceded by 10,
but kept separate for documentation purposes).
PublicInbox::Config->new is over twice as fast, now.

Eric Wong (10):
  miscsearch: load Xapian at initialization
  xt: add create-many-inboxes helper test
  inbox: git_epoch: correct false comment
  inboxwritable: _init_v1: set created_at ASAP
  miscsearch: index UIDVALIDITY, use as startup cache
  extsearchidx: close SQLite handles after attaching
  config: _fill: inbox name extraction optimization
  config: git_config_dump: pre-compile RE for split
  config: config_fh_parse: micro-optimize
  config: config_fh_parse: micro-optimize even harder

 MANIFEST                         |  1 +
 lib/PublicInbox/Config.pm        | 26 ++++-----
 lib/PublicInbox/ExtSearchIdx.pm  | 25 +++++---
 lib/PublicInbox/Inbox.pm         |  2 +-
 lib/PublicInbox/InboxWritable.pm |  3 +-
 lib/PublicInbox/MiscIdx.pm       | 26 ++++++---
 lib/PublicInbox/MiscSearch.pm    | 57 ++++++++++++++++--
 lib/PublicInbox/NNTPD.pm         |  4 +-
 lib/PublicInbox/Search.pm        |  9 ++-
 lib/PublicInbox/SearchIdx.pm     |  7 ---
 t/search.t                       |  4 +-
 xt/create-many-inboxes.t         | 99 ++++++++++++++++++++++++++++++++
 12 files changed, 213 insertions(+), 50 deletions(-)
 create mode 100644 xt/create-many-inboxes.t

^ permalink raw reply	[relevance 6%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2020-12-23  8:38  6% [PATCH 00/10] start optimizing startup w/ ALL->misc Eric Wong
2020-12-23  8:38  7% ` [PATCH 04/10] inboxwritable: _init_v1: set created_at ASAP Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

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).