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

Don't invalidate cache when opening files 'rb', speed up small read 2x #321

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mvds00
Copy link
Contributor

@mvds00 mvds00 commented Nov 28, 2020

This checklist is used to make sure that common guidelines for a pull request are followed.

Description of the change

Don't invalidate cache when opening files 'rb', speed up small read 2x.
This aligns the code with the following comment:

always invalidate the cache when checking for existence of a file
that may be created or written to (for the first time).

General Guidelines

  • The PR has modified HISTORY.rst with an appropriate description of the change and a version increment.
  • The PR has supporting test coverage that confirm the expected behavior and protects against regressions, including necessary recordings.
  • Links to associated bugs, if any, are in the description. (n/a)

… reads 2x

This aligns the code with the following comment:

  always invalidate the cache when checking for existence of a file
  that may be created or written to (for the first time).
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.

1 participant