This PR improves the performance of WrappedList by using map.
Summary of changes
I used map and some short-circuiting to improve performance.
All code is commented, with docstrings, and typed where relevant.
Validation steps
✔️ Created an environment (for me, a Poetry environment, because I am using Python 3.10)
✔️ Installed anvil-runtime Python downlink, using path installation
✔️ Ran tests (see #75) in the environment. Confirmed that all tests pass.
✔️ Ran quick-and-dirty timing script
Purpose
This PR improves the performance of WrappedList by using
map
.Summary of changes
I used
map
and some short-circuiting to improve performance.All code is commented, with docstrings, and typed where relevant.
Validation steps
✔️ Created an environment (for me, a Poetry environment, because I am using Python 3.10) ✔️ Installed anvil-runtime Python downlink, using path installation ✔️ Ran tests (see #75) in the environment. Confirmed that all tests pass. ✔️ Ran quick-and-dirty timing script