Re: C++ hashmap implementation

2024-10-15 Thread Patrice Dumas
On Tue, Oct 15, 2024 at 10:07:24PM +0100, Gavin Smith wrote: > On Sun, Oct 06, 2024 at 03:43:17PM +0200, Patrice Dumas wrote: > > Hello, > > > > I did the timings on elisp, glibc and texinfo manuals and I get about > > * 2 between C only and Perl with TEXINFO_XS_CONVERT=1 and > > * 4 between Pe

Re: C++ hashmap implementation

2024-10-15 Thread Gavin Smith
On Sun, Oct 06, 2024 at 03:43:17PM +0200, Patrice Dumas wrote: > Hello, > > I did the timings on elisp, glibc and texinfo manuals and I get about > * 2 between C only and Perl with TEXINFO_XS_CONVERT=1 and > * 4 between Perl with TEXINFO_XS_CONVERT=1 and Perl with XS for > parser only. Sorry,

Re: C++ hashmap implementation

2024-10-06 Thread Patrice Dumas
On Sun, Oct 06, 2024 at 03:43:17PM +0200, Patrice Dumas wrote: > > There are also error messages about locales and collation: > > > > $ ../teximakehtml ../../../../doc/texinfo.texi > > BUG: no Perl collation > > texi2any: warning: collation locale not found: en_US > > The "collation locale not fo

Re: C++ hashmap implementation

2024-10-06 Thread Patrice Dumas
Hello, I did the timings on elisp, glibc and texinfo manuals and I get about * 2 between C only and Perl with TEXINFO_XS_CONVERT=1 and * 4 between Perl with TEXINFO_XS_CONVERT=1 and Perl with XS for parser only. > There are also error messages about locales and collation: > > $ ../teximakehtm

Re: C++ hashmap implementation

2024-10-06 Thread Patrice Dumas
On Sun, Oct 06, 2024 at 02:48:25PM +0200, Patrice Dumas wrote: > On Sun, Oct 06, 2024 at 02:40:42PM +0200, Patrice Dumas wrote: > > > > The @iftex sections are expanded, that's why there are all those errors. > > They probably do not mess that much the timing, but still this should > > not happen.

Re: C++ hashmap implementation

2024-10-06 Thread Patrice Dumas
On Sun, Oct 06, 2024 at 02:40:42PM +0200, Patrice Dumas wrote: > > The @iftex sections are expanded, that's why there are all those errors. > They probably do not mess that much the timing, but still this should > not happen. Strangely I have not seen that when comparing texi2any and > teximakeh

Re: C++ hashmap implementation

2024-10-06 Thread Patrice Dumas
On Sun, Oct 06, 2024 at 12:47:42PM +0100, Gavin Smith wrote: > > I've tried it myself although have been unable to run it on anything > but texinfo.texi for the manuals I tried. > > I did not see anything in teximakehtml.c about which converter was used > so I patched the code in converter_conver

C++ hashmap implementation

2024-10-06 Thread Gavin Smith
On Sun, Oct 06, 2024 at 12:09:47PM +0100, Gavin Smith wrote: > On Sun, Oct 06, 2024 at 09:53:22AM +0200, Patrice Dumas wrote: > > > How much slower would the linear search actually be? > > > > It is much slower (if I recall well, it was something like 100 times > > slower for the texi2any manual).