-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
106056: cli,sql: improve userfile upload performance r=adityamaru a=stevendanna This PR is a serious of changes to improve the performance of userfile uploads. See the individual commits for details. The performance of uploading a 64 MB file improves substantially with these changes: ``` Before: BenchmarkUserfileUpload-16 1 13537820708 ns/op 4.96 MB/s 37239761608 B/op 1311062 allocs/op After: BenchmarkUserfileUpload-16 1 2135076152 ns/op 31.43 MB/s 2460613480 B/op 551130 allocs/op ``` - [x] Avoid buffering entire file during upload on the CLI-side - [x] Avoid quadratic behaviour when searching for line endings (`@rafiss` fixed in #106088, thanks!) - [x] Tests for escapingReader - [x] Benchmark Co-authored-by: Steven Danna <[email protected]>
- Loading branch information
Showing
6 changed files
with
170 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters