X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=Documentation%2Flei_design_notes.txt;fp=Documentation%2Flei_design_notes.txt;h=a5606c05f1dc7cac76695f57d9adce591ee166c3;hb=ba0c73ae03214e57004af4192b57141c1a0fff9f;hp=0000000000000000000000000000000000000000;hpb=6b3ba59d4bfdf20507fd890df6ff1454a93435e4;p=public-inbox.git diff --git a/Documentation/lei_design_notes.txt b/Documentation/lei_design_notes.txt new file mode 100644 index 00000000..a5606c05 --- /dev/null +++ b/Documentation/lei_design_notes.txt @@ -0,0 +1,20 @@ +lei design notes +---------------- + +Daemon architecture +------------------- + +The use of a persistent daemon works around slow startup time of +Perl. This is especially important for built-in support for +shell completion. It will eventually support inotify and EVFILT_VNODE +background monitoring of Maildir keyword changes. + +If lei were reimplemented in a language with faster startup +time, the daemon architecture would likely remain since it also +lets us easily decouple the local storage from slow IMAP/NNTP +backends and allow us to serialize writes to git-fast-import, +SQLite, and Xapian across multiple processes. + +The coupling of IMAP and NNTP network latency to local storage +is a current weakness of public-inbox-watch. Therefore, -watch +will likely adopt the daemon architecture of lei in the future.