On Tue, Jun 15 2021, Kyle Meyer wrote: > Xinglu Chen writes: > >> Hi, >> >> I played around with the lei interface for a bit, and I have some >> thoughts and observations: > > Thanks a lot for writing this up. You are welcome! >> * I noticed that ‘piem-lei-query’ was a little slow, at least compared >> to notmuch.el. I have indexed the guix-devel and guix-patches mailing >> lists (I think) and making the query ‘d:20.days.ago.. guix’ took >> around three seconds. It seems like it waits for all the results from >> lei to arrive before processing them, whereas notmuch.el processes the >> messages as they come, similar to ‘git log’. > > Right, piem-lei-query waits for the entire output. Moving to an > asynchronous process is definitely a direction I'd like to go. Offhand > I think lei-q's ldjson format should be amenable, but I haven't started > looking into it yet. > > Also, I'd be curious how much of a speedup you see on the second run. > From the command line, I've noticed it sometimes takes lei-q a bit of > time before outputting anything at all, and that it's much faster on the > second run of the query. If that's the main source of the slowdown, > async processing on piem's end of course won't help. Hmm, it does seem to get a bit faster on the second run, thanks for pointing this out. >> * In PGP singed messages there is a ‘lei blob OID’ attachment, not sure >> why that is there > [...] >> [-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 5599 bytes --] >> [-- lei blob 69667b191433ea4c4a46dd8414a4c5ee366d8e4d:1 --] > > That's what `lei q --format=text ...' outputs. The plan is to > eventually process the raw buffer (e.g., mm-dissect-buffer), but > --format=text was an easy way to get things off the ground. Ah, OK, you can probably tell that I haven’t used lei that much :) > Thanks again for the feedback. My free time is a bit crunched at the > moment, but some of these should be next-ish steps when I get back to > working on piem-lei. No worries, no need to hurry :)