-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(tools/string): speed up strip (whitespace) (#13168)
### Summary With simple microbenchmark: ```lua ngx.update_time() local s = ngx.now() for i = 1, 100000 do local a = strip(" \t \ndogestr \f\t\r ") end ngx.update_time() local e = ngx.now() print("took: ", (e * 1000) - (s * 1000), " ms") ``` I get these results: Current: `took: 57 ms` PR: `took: 7 ms` Signed-off-by: Aapo Talvensaari <[email protected]>
- Loading branch information
Showing
1 changed file
with
57 additions
and
15 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
582d5ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bazel Build
Docker image available
kong/kong:582d5acf5953330c6e04b5b8c0c108127abe207b
Artifacts available https://github.com/Kong/kong/actions/runs/9479525499