* [PATCH 0/7] gcf2: libgit2-based cat-file alternative
@ 2020-09-19 9:37 6% Eric Wong
2020-09-19 9:37 7% ` [PATCH 5/7] gcf2*: more descriptive package descriptions Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2020-09-19 9:37 UTC (permalink / raw)
To: meta
This allows a single cat-file-like process to handle multiple
inboxes; instead of having a "git cat-file --batch" process for
every inbox; saving pipes and process table space.
The preliminary code was done months ago, but I struggled to put
all the pieces together in a coherent way. My brain has been
scattered :x
I finally decided to make the gcf2 process a global singleton
(per-worker) to avoid complexity elsewhere in the config...
It doesn't detect or release unlinked packs + indices, yet,
so "git gc" may not free disk space until restarted.
Otherwise it does detect new epochs and seems mostly working
otherwise...
Eric Wong (7):
gcf2: libgit2-based git cat-file alternative
t/gcf2: test changes to alternates
add gcf2 client and executable script
gcf2: transparently retry on missing OID
gcf2*: more descriptive package descriptions
gcf2: require git dir with OID
gcf2: wire up read-only daemons and rm -gcf2 script
MANIFEST | 5 +
lib/PublicInbox/Daemon.pm | 11 +++
lib/PublicInbox/Gcf2.pm | 89 ++++++++++++++++++
lib/PublicInbox/Gcf2Client.pm | 62 +++++++++++++
lib/PublicInbox/Git.pm | 41 ++++++---
lib/PublicInbox/GitAsyncCat.pm | 73 +++++++++++++--
lib/PublicInbox/IMAP.pm | 2 +-
lib/PublicInbox/gcf2_libgit2.h | 142 +++++++++++++++++++++++++++++
script/public-inbox-httpd | 1 +
t/gcf2.t | 162 +++++++++++++++++++++++++++++++++
t/gcf2_client.t | 90 ++++++++++++++++++
11 files changed, 652 insertions(+), 26 deletions(-)
create mode 100644 lib/PublicInbox/Gcf2.pm
create mode 100644 lib/PublicInbox/Gcf2Client.pm
create mode 100644 lib/PublicInbox/gcf2_libgit2.h
create mode 100644 t/gcf2.t
create mode 100644 t/gcf2_client.t
^ permalink raw reply [relevance 6%]
* [PATCH 5/7] gcf2*: more descriptive package descriptions
2020-09-19 9:37 6% [PATCH 0/7] gcf2: libgit2-based cat-file alternative Eric Wong
@ 2020-09-19 9:37 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2020-09-19 9:37 UTC (permalink / raw)
To: meta
Hopefully this allows others to more quickly figure out what's
going on.
---
lib/PublicInbox/Gcf2.pm | 5 +++--
lib/PublicInbox/Gcf2Client.pm | 2 ++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/PublicInbox/Gcf2.pm b/lib/PublicInbox/Gcf2.pm
index 6ac3aa18..fe76b1fd 100644
--- a/lib/PublicInbox/Gcf2.pm
+++ b/lib/PublicInbox/Gcf2.pm
@@ -1,7 +1,8 @@
# Copyright (C) 2020 all contributors <meta@public-inbox.org>
# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
-#
-# git-cat-file based on libgit2
+
+# backend for public-inbox-gcf2(1) (git-cat-file based on libgit2,
+# other libgit2 stuff may go here, too)
package PublicInbox::Gcf2;
use strict;
use PublicInbox::Spawn qw(which popen_rd);
diff --git a/lib/PublicInbox/Gcf2Client.pm b/lib/PublicInbox/Gcf2Client.pm
index 5120698f..a048cd1a 100644
--- a/lib/PublicInbox/Gcf2Client.pm
+++ b/lib/PublicInbox/Gcf2Client.pm
@@ -1,5 +1,7 @@
# Copyright (C) 2020 all contributors <meta@public-inbox.org>
# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
+
+# connects public-inbox processes to public-inbox-gcf2(1)
package PublicInbox::Gcf2Client;
use strict;
use parent 'PublicInbox::Git';
^ permalink raw reply related [relevance 7%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2020-09-19 9:37 6% [PATCH 0/7] gcf2: libgit2-based cat-file alternative Eric Wong
2020-09-19 9:37 7% ` [PATCH 5/7] gcf2*: more descriptive package descriptions 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).