RW
c4569c5fbb
feat: enhance performance ( #2135 )
...
* feat: enhance performance
* fix: improve request URI parsing condition
* feat: validate HTTP date parsing and optimize status code length calculation
* Address parsing and lint issues
* chore: update Go version to 1.24.x in CI configuration
* feat: enhance HTTP date parsing and request URI handling
* refactor: optimize month and day name parsing using bitwise operations
* refactor: replace cookie token comparison with case insensitive function and streamline request URI parsing
* refactor: streamline request body handling and simplify request URI assignment
* chore: update Go version to 1.25.x in CI configuration
* feat: add fuzz testing for HTTP date parsing to improve robustness
* refactor: avoid unused return values in HTTP date parsing benchmarks
* refactor: update HTTP date parsing to use http.TimeFormat for consistency
2026-04-01 16:19:26 +09:00
Erik Dubbelboer
c2b317d47d
Go 1.26 and golangci-lint updates ( #2146 )
...
Keep Go 1.24 compatibility for now (by not using `wg.Go()`).
2026-02-21 10:28:39 +01:00
Kashiwa
e2bb2e0d64
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
2024-09-22 15:46:29 +02:00
Oleksandr Redko
e28be0c993
fix: panic in ParseIPv4 when len(dst) > 4 ( #1742 )
2024-03-29 14:11:50 +01:00
Oleksandr Redko
7e1fb71854
Enable perfsprint linter; fix up lint issues ( #1727 )
2024-03-02 16:21:23 +01:00
Oleksandr Redko
8ecfc989d9
Enable dupword, unconvert linters ( #1658 )
2023-11-12 16:42:39 +01:00
Oleksandr Redko
9aa666e814
Enable gocritic linter; fix lint issues ( #1612 )
2023-08-29 20:08:37 +02:00
Erik Dubbelboer
7a5afddf5b
Use %v for errors and %q for strings ( #1262 )
...
Mostly in tests.
2022-04-01 18:11:16 +02:00
ZhangYunHao
286828e256
add a test for AppendQuotedArg ( #1255 )
2022-03-18 08:19:58 +01:00
ZhangYunHao
f7423e3def
Fix AppendHTMLEscape ( #1248 )
2022-03-15 09:39:40 +01:00
ZhangYunHao
707b1c1917
Format errors ( #679 )
...
* format errors
* Server is a type name
* Fix typo
2019-10-23 20:12:59 +08:00
Erik Dubbelboer
c3d82ca3a4
Speed up testing by running tests in parallel
2019-10-16 10:20:13 +02:00
Erik Dubbelboer
97d51fbf75
go fmt ./...
2019-09-28 14:53:43 +02:00
Erik Dubbelboer
8a9bdc8177
Fix ParseUint to support all possible numbers
...
Fixes #461
2018-11-14 01:59:18 +08:00
Erik Dubbelboer
d4f0cf56d8
Remove fasthttp.ByteBuffer
...
As advertised in https://github.com/valyala/fasthttp/commit/b5f96d4b4120bb1e09c23ac32baf21a14da4a71d
2018-10-01 14:15:29 +08:00
Aliaksandr Valialkin
c0de95e84b
Added AppendUnquotedArg - the complementary function to AppendQuotedArg
2017-06-19 18:35:07 +03:00
Aliaksandr Valialkin
394c20fdc5
Added AppendHTMLEscape helper function
2016-02-15 16:53:44 +02:00
Aliaksandr Valialkin
bfce0fa31c
substituted bytes.Buffer by ByteBuffer in tests where appropriate
2016-02-12 14:15:28 +02:00
Aliaksandr Valialkin
3222ab8c8c
Added AppendIPv4 and ParseIPv4 helper functions
2015-12-11 13:11:15 +02:00
Aliaksandr Valialkin
c04fdb47a5
Test writeHexInt for 32-bit and 64-bit architectures
2015-11-28 23:11:07 +02:00
Aliaksandr Valialkin
974a1c99ce
Optimized AppendUint by using stack-based buffer instead of uintBufPool
2015-11-28 23:00:10 +02:00
Aliaksandr Valialkin
58d404c7e9
Issue #7 : an attempt to blindly fix arm build according to @msoap suggestion
2015-11-28 20:47:17 +02:00
Aliaksandr Valialkin
02d312eb54
Added BodyStream to Response, so RequestHandler may set BodyStream instead of Body when it needs response body streaming
2015-11-11 12:54:49 +02:00
Aliaksandr Valialkin
04ec7b22d0
Added a test for AppendHTTPDate
2015-11-11 11:04:54 +02:00
Aliaksandr Valialkin
9735e0127b
Exported ParseUint, ParseUfloat and AppendHTTPDate, which may be frequently used in http apps
2015-11-11 11:00:22 +02:00
Aliaksandr Valialkin
a049630bca
initial commit
2015-10-19 01:21:09 +03:00