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

perf(runtime/fs): optimize readFile by using a single large buffer #12057

Merged
merged 6 commits into from
Sep 16, 2021

Commits on Sep 13, 2021

  1. Configuration menu
    Copy the full SHA
    7a685ae View commit details
    Browse the repository at this point in the history
  2. Revert deno_common.js changes

    Accidentally committed, denoland#12056 adds `read_128k_sync`
    AaronO committed Sep 13, 2021
    Configuration menu
    Copy the full SHA
    570f832 View commit details
    Browse the repository at this point in the history
  3. lint

    AaronO committed Sep 13, 2021
    Configuration menu
    Copy the full SHA
    705b952 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2021

  1. handle extended/truncated files during read

    Allocate an extra byte in our read buffer to detect "overflow" then fallback to unsized readAll for remainder of extended file, this is a slowpath that should rarely happen in practice
    AaronO committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    852062e View commit details
    Browse the repository at this point in the history
  2. fmt

    AaronO committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    a4465db View commit details
    Browse the repository at this point in the history
  3. fix

    AaronO committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    d2f3d20 View commit details
    Browse the repository at this point in the history