GNU bug report logs -
#46881
28.0.50; pdumper dumping causes way too many syscalls
Previous Next
Reported by: Pip Cet <pipcet <at> gmail.com>
Date: Tue, 2 Mar 2021 20:35:01 UTC
Severity: normal
Found in version 28.0.50
Done: Mattias EngdegÄrd <mattiase <at> acm.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On Tue, Mar 02, 2021 at 08:45:04PM +0000, Pip Cet wrote:
> On Tue, Mar 2, 2021 at 8:35 PM Pip Cet <pipcet <at> gmail.com> wrote:
> > I've looked into the problem, and it seems easy to solve and worth it
> > in terms of debuggability and performance.
>
> Very rough benchmarks, but this seems to be clearly worth it:
>
> Performance:
> With patch:
> real 0m3.861s
> user 0m3.776s
> sys 0m0.085s
>
> Without patch:
> real 0m7.001s
> user 0m4.476s
> sys 0m2.511s
>
> Number of syscalls:
> With patch: 415442
> Without patch: 2028307
My quick test on macOS by doing:
rm src/*.pdmp
time make
sees it going from ~26s without patch to ~10s with patch, so a
considerable improvement.
> > Patch will be attached once this has a bug number.
>
> And here's the patch. Testing would be very appreciated.
It appears to work fine here, but I don't know if there's anything
specific to test other than just running Emacs.
--
Alan Third
This bug report was last modified 4 years and 34 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.