diff options
| author | Eli Schwartz <eschwartz93@gmail.com> | 2024-03-18 23:13:45 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-04-15 16:43:07 -0400 |
| commit | 39f6d117926c78d3505525e6798d71a6e9bf7d74 (patch) | |
| tree | 5962fcfffccf111a6d28e678526639451f946e6c /mesonbuild/dependencies/python.py | |
| parent | 2d3954efac61d37bdcf5c27204163e60d2932290 (diff) | |
| download | meson-39f6d117926c78d3505525e6798d71a6e9bf7d74.tar.gz | |
micro-optimize iteration of evaluated set
It is generally accepted practice to convert dict.keys() to a list
before iterating over it and e.g. deleting values, as keys returns a
live-action view. In this case, we use the difference of *two* dict
keys, which returns a regular non-view set and doesn't need protecting.
Iteration order doesn't matter (the set already randomizes it anyway).
Avoid the cost of converting to a list.
Diffstat (limited to 'mesonbuild/dependencies/python.py')
0 files changed, 0 insertions, 0 deletions
