You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we now recommend package:http as instead of the web specific APIs, we should investigate ways to reduce the bundle size added by using the package.
Using just the top-level read function in dart-lang/dartdoc@a845d39, increased my -O4 bundle size by 75KB.
A lot of this comes from the internal use of MediaType from package:http_parser and its dependencies for parsing (package:source_span). Particularly package:source_span and its highlighting, reporting, and prettifying Uris.
Windows Uri parsing is showing up a bit despite being unused as well. I opened dart-lang/sdk#54474 to track a fix for this in the core libraries.
The text was updated successfully, but these errors were encountered:
Since we now recommend
package:http
as instead of the web specific APIs, we should investigate ways to reduce the bundle size added by using the package.Using just the top-level
read
function in dart-lang/dartdoc@a845d39, increased my-O4
bundle size by 75KB.A lot of this comes from the internal use of
MediaType
frompackage:http_parser
and its dependencies for parsing (package:source_span
). Particularlypackage:source_span
and its highlighting, reporting, and prettifying Uris.Windows
Uri
parsing is showing up a bit despite being unused as well. I opened dart-lang/sdk#54474 to track a fix for this in the core libraries.The text was updated successfully, but these errors were encountered: