unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* First draft of logging functionality.
@ 2010-10-11 13:26 david
  2010-10-11 13:26 ` [PATCH 1/3] Initial implementation of low level logging routines david
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: david @ 2010-10-11 13:26 UTC (permalink / raw)
  To: notmuch

The patches following this message are my first attempt at
implementing atomic logging for notmuch.  The idea is that such logs
could be useful in synchronizing notmuch instances.

Feedback of any kind is welcome. I'm particularly interested in
comments about the log format and performance.

In my tests, logging adds about a 10% speed penalty (tagging ~3700
messages) if enabled. I'd be curious if people for whom tagging is
slow could tell me if they take a bigger hit. If you want to test, add
a stanza like

[log]
tags = /path/to/logfile

to your notmuch config.

About the format, I am currently using

seconds-since-epoch json-quoted-message-id json-quoted-plus-minus-tag

I know some of you will not be thrilled with the quoting format; I'm
open to other ideas, but this is what was already existing in notmuch
code.  At the moment I wanted to push the quoting fairly far down the
stack and use the same for all potential logging, but perhaps this is
too much "design by convenient implementation".

Canadian-Thanksgiving-Greetings,

David

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

end of thread, other threads:[~2010-11-13 12:11 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11 13:26 First draft of logging functionality david
2010-10-11 13:26 ` [PATCH 1/3] Initial implementation of low level logging routines david
2010-10-11 13:26 ` [PATCH 2/3] notmuch-log.c: Add a function to log a pair of strings with a timestamp david
2010-10-11 13:26 ` [PATCH 3/3] notmuch-tag.c: Add tag logging david
2010-10-12  9:06 ` First draft of logging functionality Michal Sojka
2010-10-12 11:21   ` David Bremner
2010-10-12 11:38     ` Michal Sojka
2010-10-12 13:16       ` David Bremner
2010-10-12 14:32 ` Rob Browning
2010-10-24 21:01 ` Second draft of logging patches david
2010-11-10  3:18   ` David Bremner
2010-11-13  5:25     ` Michal Sojka
2010-11-13 12:11       ` David Bremner
2010-10-24 21:01 ` [PATCH 1/4] Initial implementation of low level logging routines david
2010-10-24 21:01 ` [PATCH 2/4] Add log component to database struct david
2010-10-24 21:01 ` [PATCH 3/4] Add logging to low level message handling routines david
2010-10-24 21:01 ` [PATCH 4/4] Enable logging in notmuch-tag.c david

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

	https://yhetil.org/notmuch.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).