diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-11-25 01:25:16 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-11-25 02:39:21 +0100 |
| commit | 4b2393627c5c75807d559ef706f0d966ce131f60 (patch) | |
| tree | f1fb14ed0109f7a7e1eb132351ec10e78200ba5e /examples/list_undefined.py | |
| parent | e02c01e0628507d46ab7e25e4fa1b84183a86712 (diff) | |
Speed up some token tests
Turn some of the hotter membership test tuples into global sets, like
was already done for _TYPE_TOKENS. That saves some global lookups for
the tuple members and avoids repeatedly recreating tuples. It's 30%-50%
faster in a microbenchmark, even for two-element tuples (with global
lookups for the members).
Diffstat (limited to 'examples/list_undefined.py')
0 files changed, 0 insertions, 0 deletions
