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

Cache grammar tables after finishing, not at startup #2702

Closed
wants to merge 4 commits into from

Conversation

ichard26
Copy link
Collaborator

Description

*and also get rid of the confusing log messages related to the grammar cache which just confuses everyone and leads to confused issues to be opened

Resolves GH-2681.
Resolves GH-2058.
Resolves GH-1143.

Checklist - did you ...

  • Add a CHANGELOG entry if necessary?
  • Add / update tests if necessary?
  • Add new / update outdated documentation? -> n/a

*and also get rid of the confusing log messages related to the grammar
cache which just confuses everyone and leads to confused issues to be
opened.
@JelleZijlstra
Copy link
Collaborator

It looks like we'd still load them at import time due to the pygram.initialize(CACHE_DIR) line in black/nodes.py.

@ichard26 ichard26 marked this pull request as draft January 1, 2022 22:49
@ichard26
Copy link
Collaborator Author

I won't be picking this up for a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants