Skip to content

Understanding Performance Characteristic of Common Python Code

License

Notifications You must be signed in to change notification settings

omars-lab/perf-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!)

Python package

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 PYPI in 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]

About

Understanding Performance Characteristic of Common Python Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published