On Tue, Sep 18, 2018 at 1:31 AM, Antoine Pitrou <solip...@pitrou.net> wrote:
> No idea. In my previous experiments with module import speed, I > concluded that executing module bytecode generally was the dominating > contributor, but that doesn't mean loading bytecode is costless. > My observations might not be so different. On a large application, we measured ~25-30% of start-up time being spent in the loading of compiled bytecode. That includes: probing the filesystem, reading the bytecode off disk, allocating heap storage, and un-marshaling objects into the heap. Making that percentage go to ~0% using this change does not make the non-import parts of our module body functions execute faster. It does create a greater opportunity for the application developer to do less work in module body functions which is where the largest start-up time gains are now likely to happen.
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com