Tags: valyala/fasthttp
Tags
Remove idleConns mutex for every request (#1986) Locking and unlocking a mutex multiple times per request is a major slowdown that we can avoid with clever use of atomics. Before: ``` BenchmarkServerGet100ReqPerConn10KClients-12 84167428 867.7 ns/op ``` After: ``` BenchmarkServerGet100ReqPerConn10KClients-12 187397954 386.3 ns/op ```
Improve performance of ParseUfloat (#1865) * Improve performance of ParseUfloat function Replaced `offset` handling logic with more efficient math.Pow10 based calculation. goos: linux goarch: amd64 pkg: github.com/valyala/fasthttp cpu: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz │ old.txt │ new.txt │ │ sec/op │ sec/op vs base │ ParseUfloat-8 44.22n ± 0% 31.06n ± 0% -29.76% (n=50) * fix: lint error return value is not checked * Handling uint64 overflow issues * Implement ParseUfloat by calling strconv.ParseFloat * fix: lint error
chore(deps): bump securego/gosec from 2.19.0 to 2.20.0 (#1776) Bumps [securego/gosec](https://github.com/securego/gosec) from 2.19.0 to 2.20.0. - [Release notes](https://github.com/securego/gosec/releases) - [Changelog](https://github.com/securego/gosec/blob/master/.goreleaser.yml) - [Commits](securego/gosec@v2.19.0...v2.20.0) --- updated-dependencies: - dependency-name: securego/gosec dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Prevent request smuggling (#1719) * Prevent request smuggling Prevent request smuggling when fasthttp is behind a reverse proxy that might interprets headers differently by being stricter. Should also prevent request smuggling when fasthttp is used as the reverse proxy. * Make header value comparison case-insensitive
PreviousNext