bug-gnulib
[Top][All Lists]
Advanced

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

Re: gnulib-tool.py: lists vs. sets


From: Collin Funk
Subject: Re: gnulib-tool.py: lists vs. sets
Date: Sat, 6 Apr 2024 14:06:32 -0700
User-agent: Mozilla Thunderbird

Hi Bruno,

On 4/6/24 6:41 AM, Bruno Haible wrote:
> * gnulib-tool.py is between 2x and 300x faster than gnulib-tool.sh, depending
>   on the arguments. This means, the goal of speedup has been fully achieved.
>   The other goals (clear code, maintainability, etc.) are still present.

Yes, I meant the speed thing *mostly* as a joke. :)

I was trying to cleanup list comprehensions from this:

    file_table = sorted([ file
                          for file in table1
                          if file not in table2 ])

to this:

    file_table = sorted(set(table1).difference(table2))

because I find them easier to follow.

Collin



reply via email to

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