>> In short, it's not worth worrying about, and definitely nothing that >> should cause people to spread an idea that __init__.py somehow speeds >> things up. > > The best way to avoid people spreading that idea would be to show hard > measurements.
PJE wants people to spread an idea, not to avoid them doing so. In any case, hard measurements might help to spread the idea, here are mine. For the attached project, ec656d79b8ac gives, on my system import time for a namespace package: 113µs (fastest run, hot caches) import time for a regular package: 128µs (---- " ------) first-time import of regular package: 1859µs (due to pyc generation) (remove __init__.py and __pycache__ to construct the first setup) So namespace packages are indeed faster than regular packages, at least in some cases. Regards, Martin
spacetiming.tgz
Description: application/compressed-tar
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com