-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: optimising stripping bearer token (#2433)
Should speed up JWT & Auth Token a little bit. ``` benchcmp old.txt new.txt benchmark old ns/op new ns/op delta BenchmarkStripBearer-4 165 38.4 -76.73% benchmark old allocs new allocs delta BenchmarkStripBearer-4 2 1 -50.00% benchmark old bytes new bytes delta BenchmarkStripBearer-4 96 8 -91.67% ```
- Loading branch information
Showing
3 changed files
with
38 additions
and
6 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