Understanding performance characteristics of common python constructs
Project description
perf-py
A library that personally helps me understand the performance of common python code (and in turn, it might help you understand it too!)
Todo
- Does mapping over an iterator perform better than using generators?
- Does chunking a generator affect performance?
- Does composing generators affect performance?
- Make a table of the performance of each function ...
- Open this up in a notebook!
Personal Reminders
- To publish to pypi w/o an alpha version, push a commit with
Publish To PYPIin its commit message.
TODO
Chunking and garbage collecting simultaneously
l = list(range(100))
batchsize = 11
while len(l) > 0: print(l) print(l[:batchsize]) del l[:batchsize]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file perf-py-0.0.1a4.tar.gz.
File metadata
- Download URL: perf-py-0.0.1a4.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dae50810dfd227c47907cbe2a7cdd323ebf428547a58f643524b5526966409f3
|
|
| MD5 |
19c4d24898978aea7000387b7a04eba7
|
|
| BLAKE2b-256 |
913c5fe12558952b1bacff20b506764125297faefb748b7728a393ce94567230
|
File details
Details for the file perf_py-0.0.1a4-py3-none-any.whl.
File metadata
- Download URL: perf_py-0.0.1a4-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d089d344a0a1881afb1b70e57510405ed2dbc19402862f2c2d379e4641a31d2b
|
|
| MD5 |
4eb429535506158b27e077d0a0eafbf0
|
|
| BLAKE2b-256 |
e35638cdbc3afc549df8f3ff954d338d45e4ad55fa7fa26d66efdba180e9f0f5
|