[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
- gnulib-tool.py: Fix 'consider-using-with' pylint warnings., Collin Funk, 2024/04/05
- gnulib-tool.py: Use 'Any' instead of type unions in GLConfig., Collin Funk, 2024/04/05
- Re: gnulib-tool.py: Fix 'consider-using-with' pylint warnings., Bruno Haible, 2024/04/05
- Re: gnulib-tool.py: Fix 'consider-using-with' pylint warnings., Collin Funk, 2024/04/05
- Re: gnulib-tool.py: lists vs. sets, Bruno Haible, 2024/04/06
- Re: gnulib-tool.py: lists vs. sets,
Collin Funk <=
- Re: gnulib-tool.py: lists vs. sets, Bruno Haible, 2024/04/07
- Re: gnulib-tool.py: lists vs. sets, Collin Funk, 2024/04/07
- Re: Python list micro-benchmarks, Bruno Haible, 2024/04/07
- Re: Python list micro-benchmarks, Collin Funk, 2024/04/07
- Re: Python list micro-benchmarks, Paul Eggert, 2024/04/07
- Re: Python list micro-benchmarks, Collin Funk, 2024/04/07
- Re: Python list micro-benchmarks, Bruno Haible, 2024/04/08
- Re: Python list micro-benchmarks, Collin Funk, 2024/04/08
- Re: Python list micro-benchmarks, Bruno Haible, 2024/04/08
- Re: Python list micro-benchmarks, Paul Eggert, 2024/04/08