Skip to content

Commit 984e485

Browse files
Add docs from gofiber/fiber@091a594
1 parent 1afbe68 commit 984e485

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docs/core/whats_new.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,34 @@ DRAFT section
254254

255255
## 🧬 Middlewares
256256

257+
### Adaptor
258+
259+
The adaptor middleware has been significantly optimized for performance and efficiency. Key improvements include reduced response times, lower memory usage, and fewer memory allocations. These changes make the middleware more reliable and capable of handling higher loads effectively. Enhancements include the introduction of a `sync.Pool` for managing `fasthttp.RequestCtx` instances and better HTTP request and response handling between net/http and fasthttp contexts.
260+
261+
| Payload Size | Metric | V2 | V3 | Percent Change |
262+
|--------------|------------------|-----------|----------|-------------------|
263+
| 100KB | Execution Time | 1056 ns/op| 588.6 ns/op | -44.25% |
264+
| | Memory Usage | 2644 B/op | 254 B/op | -90.39% |
265+
| | Allocations | 16 allocs/op | 5 allocs/op | -68.75% |
266+
| 500KB | Execution Time | 1061 ns/op| 562.9 ns/op | -46.94% |
267+
| | Memory Usage | 2644 B/op | 248 B/op | -90.62% |
268+
| | Allocations | 16 allocs/op | 5 allocs/op | -68.75% |
269+
| 1MB | Execution Time | 1080 ns/op| 629.7 ns/op | -41.68% |
270+
| | Memory Usage | 2646 B/op | 267 B/op | -89.91% |
271+
| | Allocations | 16 allocs/op | 5 allocs/op | -68.75% |
272+
| 5MB | Execution Time | 1093 ns/op| 540.3 ns/op | -50.58% |
273+
| | Memory Usage | 2654 B/op | 254 B/op | -90.43% |
274+
| | Allocations | 16 allocs/op | 5 allocs/op | -68.75% |
275+
| 10MB | Execution Time | 1044 ns/op| 533.1 ns/op | -48.94% |
276+
| | Memory Usage | 2665 B/op | 258 B/op | -90.32% |
277+
| | Allocations | 16 allocs/op | 5 allocs/op | -68.75% |
278+
| 25MB | Execution Time | 1069 ns/op| 540.7 ns/op | -49.42% |
279+
| | Memory Usage | 2706 B/op | 289 B/op | -89.32% |
280+
| | Allocations | 16 allocs/op | 5 allocs/op | -68.75% |
281+
| 50MB | Execution Time | 1137 ns/op| 554.6 ns/op | -51.21% |
282+
| | Memory Usage | 2734 B/op | 298 B/op | -89.10% |
283+
| | Allocations | 16 allocs/op | 5 allocs/op | -68.75% |
284+
257285
### Cache
258286

259287
We are excited to introduce a new option in our caching middleware: Cache Invalidator. This feature provides greater control over cache management, allowing you to define a custom conditions for invalidating cache entries.

0 commit comments

Comments
 (0)