By reducing internal event loop iterations, this brings 300+
inboxes down ~32ms to ~27ms. It should also be more consistent
on servers with busy event loops since all the Xapian DB traffic
happens at once, theoretically mproving cache utilization.
---
lib/PublicInbox/ConfigIter.pm | 7 +++
Gaelan Steele wrote:
> Unfortunately this patch broke public-inbox on Darwin:
>
> Bareword "SIZEOF_cmsghdr" not allowed while "strict subs" in use at
> /tmp/public-inbox/lib/PublicInbox/Syscall.pm line 456.
> BEGIN not safe after errors--compilation aborted at
>
Gaelan Steele wrote:
>
> > On Apr 8, 2024, at 10:48 AM, Eric Wong wrote:
> >
> >> I’m not enough of a Perl person to fully untangle this. As
> >> best I can tell, the intent is that non-Linux/BSD OSes should
> >> still work with Inline::C, but this doesn’t work in practice
> >> due to a bug?
> >
> On Apr 8, 2024, at 10:48 AM, Eric Wong wrote:
>
>> I’m not enough of a Perl person to fully untangle this. As
>> best I can tell, the intent is that non-Linux/BSD OSes should
>> still work with Inline::C, but this doesn’t work in practice
>> due to a bug?
>
> Right. Patch below should fix
Eric Wong wrote:
> I've unleashed the bots again and let them run rampant on the
> https://80x24.org/lore/ HTML pages. Will need to add malloc
> tracing on my own to generate reproducible results to prove it's
> worth adding to glibc malloc...
Unfortunately, mwrap w/ tracing is expensive enough