Search results
8 sty 2023 · several points to consider: "Time to init pool" is wrong. The child processes haven't finished starting, only the main process has initiated their startup. Once the workers have actually started, the speed of "Time to reach run" should drop to not include process startup.
19 sty 2018 · How to speed up Python application startup time. # python. I hear pipenv 9.0.2 is released with major startup time improvement. I tried it soon and I didn't feel it's fast. So I investigated it with Python 3.7's new feature. In this article, I introduce the feature and how to use it. Startup time ≒ import time.
PyPy is a very compliant Python interpreter that is a worthy alternative to CPython 2.7, 3.6, and soon 3.7. By installing and running your application with it, you can gain noticeable speed improvements.
If creating and/or destroying the new interpreter is what takes the time, then one possible way to speed it up is to freeze the object graph of a newly created interpreter. That would work roughly as follows: Modify CPython to walk the object graph, immediately after interpreter creation, dumping it to a text file.
I've spent a while trying to improve IPython startup time (it's still pretty bad, but it's been worse), so I'm excited to see that Python 3.7 will make this easier to test. One trick I like to do is to simulate a cold start to get an idea of the worst case performance.
23 lis 2023 · Multiprocessing contexts provide a more flexible way to manage process start methods directly within a program, and may be a preferred approach to changing start methods in general, especially within a Python library.
Python's low level serialization module and format. Supports serializing and unserializing 13 types and 3 singleton objects. Marshaled object graphs in .pyc files are made up of a subset of the types that marshal supports. 8 types, None and Ellipsis objects.