Skip to content

Add empty _imp._fix_co_filename#1068

Merged
coolreader18 merged 1 commit into
RustPython:masterfrom
palaviv:imp-_fix_co_filename
Jun 28, 2019
Merged

Add empty _imp._fix_co_filename#1068
coolreader18 merged 1 commit into
RustPython:masterfrom
palaviv:imp-_fix_co_filename

Conversation

@palaviv

@palaviv palaviv commented Jun 28, 2019

Copy link
Copy Markdown
Contributor

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