bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib-tool.py: Optimize --extract-recursive-dependencies.


From: Collin Funk
Subject: Re: gnulib-tool.py: Optimize --extract-recursive-dependencies.
Date: Wed, 04 Dec 2024 17:33:12 -0800
User-agent: Gnus/5.13 (Gnus v5.13)

Hi Bruno,

Bruno Haible <bruno@clisp.org> writes:

> Could you please fix the ChangeLog entry (s/dependencies/dependents/)?

Oops, good catch. Fixed with the attached.

> And I also see a performance regression in one case:
>
> $ time ./gnulib-tool --extract-dependents stdlib
> $ time ./gnulib-tool --extract-dependents stdlib
> $ time ./gnulib-tool --extract-dependents stdlib
> Before: ca. 0.2 to 0.25 seconds.
> AFter:  1.0 seconds.
>
> In this case, when there is only a single call to getDependents(), it was
> apparently faster to use the 'find modules ...' approach, compared to
> _getAllModules().
>
> Could you please make this case fast again? The way I'm thinking of is to add
> a boolean argument 'top_level_call' to getDependents(), and pass this argument
> as true from main.py and as false from everywhere else.

Thanks, I reproduced your findings. I'll have a look at fixing it with
your suggestions.

Collin

Attachment: 0001-Fix-a-recent-ChangeLog-entry.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]