Skip to content

Using package:http carries ~100kB cost #139

@matanlurey

Description

@matanlurey

Reproduction case @ https://github.com/matanlurey/http-browser-benchmark

Significant parts:

  • Uses ~30kB more from dart:core, I assume this is use of Uri.
  • Brings in package:path (~10kB).
  • Brings in package:stack_trace (~8kB).
  • Brings in package:source_span(~6kB).
  • Brings in package:http_parser, string_scanner (~4kB combined).
  • Brings in an extra ~6kB from dart:convert.

This is an issue when trying to use this package for mobile web applications. I can't see a clear reason why I need 100kB more for simple JSON requests given that we aren't using any of the other functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status-blockedBlocked from making progress by another (referenced) issuetype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions