diff options
| author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-09-16 20:28:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-16 20:28:15 +0200 |
| commit | 00948a6d680f855dcd0b60628a4b97186496a58c (patch) | |
| tree | c8e739c26b9e65612c6e527d55760bfabb2d03e3 /cli | |
| parent | 868f38d4528bae508fdb222402441ba374db0721 (diff) | |
perf(runtime/fs): optimize readFile by using a single large buffer (#12057)
* perf(runtime/fs): optimize readFile by using a single large buffer
* 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
Diffstat (limited to 'cli')
0 files changed, 0 insertions, 0 deletions
