Mercurial > p > roundup > code
view demo.py @ 8542:a4f017ae1477
perf: dereference methods before using in loop
I have a few comprehensions where I use self.FsValue and
self.json_dict.
Assign self.X to a variable and use the variable in the
comprehension. This may provide a little speedup since the lookup is
done once.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 24 Mar 2026 16:56:38 -0400 |
| parents | 7f0bc46aee67 |
| children |
line wrap: on
line source
#!/usr/bin/env python3 import sys import roundup from roundup.demo import main sys.exit(main())
