M
M
Maryna2018-10-16 16:32:31
Python
Maryna, 2018-10-16 16:32:31

Where is python bytecode stored?

Where is python bytecode stored: on disk oli in op? What are the advantages and disadvantages of these storage methods?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-10-16
@marichkaz

Before the script is loaded by the interpreter, the bytecode is stored in pyc-files, and during execution in RAM. The advantage of disk storage is obviously persistence. You can not repeat the relatively long parsing and compilation procedures at each launch, but immediately proceed to execution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question