Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable the parser cache #1615

Merged
merged 2 commits into from
May 27, 2018
Merged

Disable the parser cache #1615

merged 2 commits into from
May 27, 2018

Conversation

Kodiologist
Copy link
Member

Closes #1598.

See the commit message for performance tests.

I wasn't able to observe a meaningful performance improvement from it, and it requires some file I/O. Here are the times, in seconds, I observed on my ThinkPad T450s with Python 3.6 and Ubuntu 18.04:

                test 1  test 2
    master       8.96    2.59
    this change  8.88    2.62

Test 1 is the total time from:

$ time dash -c 'git clean -dfx && pip install -e . && pytest --ignore tests/test_bin.py'

Test 2 is pytest's reported total time from a subsequent:

$ pytest --ignore tests/test_bin.py
Copy link
Contributor

@vodik vodik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we need to bring it back, we can always reuse and respect sys.dont_write_bytecode.

@refi64 refi64 merged commit e66743c into hylang:master May 27, 2018
@Kodiologist Kodiologist deleted the no-parser-cache branch January 20, 2019 14:36
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.

3 participants