dart-lang / http_parser

A platform-independent Dart package for parsing and serializing HTTP formats.
https://pub.dev/packages/http_parser
BSD 3-Clause "New" or "Revised" License
38 stars 28 forks source link

* `CaseInsensitiveMap`: added constructor `fromEntries`. #99

Closed gmpassos closed 2 months ago

gmpassos commented 2 months ago

Real-world case:

Avoid unnecessary overhead as seen here:

https://github.com/dart-lang/shelf/blob/master/pkgs/shelf/lib/src/headers.dart#L32

Reason:

Improve Dart benchmark performance:

https://sharkbench.dev/web


kevmoo commented 2 months ago

FYI @gmpassos - https://github.com/dart-lang/http_parser/pull/100

gmpassos commented 2 months ago

FYI @gmpassos - https://github.com/dart-lang/http_parser/pull/100

Preparing shelf...

gmpassos commented 2 months ago

FYI @kevmoo:

Waiting only for http_parser:

https://github.com/dart-lang/shelf/compare/master...gmpassos:shelf:CaseInsensitiveMap.fromEntries

kevmoo commented 2 months ago

publised @gmpassos - https://pub.dev/packages/http_parser/versions/4.1.0