Skip to content

Conversation

@palaviv
Copy link
Contributor

@palaviv palaviv commented Jun 28, 2019

This PR and #1067 are the last things needed for supporting .pyc files. You can now change sys.dont_write_bytecode to false.
This improve the import time significantly. for example:

import time

start = time.time()
import os
print(time.time() - start)

without __pycahce__: 0.272 [sec]
with __pycache__: 0.114 [sec]
*in release

@coolreader18 coolreader18 merged commit 212522a into RustPython:master Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants