2
0
Commit Graph

2 Commits

Author SHA1 Message Date
Bo-Yi Wu 9246475528 refactor: refactor codebase for improved performance and maintainability
- Simplify variable initialization in `decode` method
- Correct method call in `WriteString` function

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2025-04-08 08:39:14 +08:00
Manu Mtz-Almeida 404710eaa4 Performance improvements.
BenchmarkResponseWriter     1239          1304          +5.25%
BenchmarkFullSSE            1469          915           -37.71%
BenchmarkNoRetrySSE         1187          785           -33.87%
BenchmarkSimpleSSE          961           687           -28.51%

benchmark                   old allocs     new allocs     delta
BenchmarkResponseWriter     9              9              +0.00%
BenchmarkFullSSE            12             3              -75.00%
BenchmarkNoRetrySSE         11             2              -81.82%
BenchmarkSimpleSSE          8              2              -75.00%

benchmark                   old bytes     new bytes     delta
BenchmarkResponseWriter     442           442           +0.00%
BenchmarkFullSSE            462           320           -30.74%
BenchmarkNoRetrySSE         473           337           -28.75%
BenchmarkSimpleSSE          426           314           -26.29%
2015-05-30 11:23:56 +02:00