Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further improvements to file size estimate #211

Open
5 tasks
sindresorhus opened this issue Oct 24, 2020 · 0 comments
Open
5 tasks

Further improvements to file size estimate #211

sindresorhus opened this issue Oct 24, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@sindresorhus
Copy link
Owner

sindresorhus commented Oct 24, 2020

#205 made the estimate much more accurate, but we can still improve it:

  • We currently add 10% to ensure the estimate is always more than the actual size. The percentage could be more dynamic: Improve file size estimate #205 (comment)
  • Show a range for the naive estimate: Display estimate as a range #130
  • For the naive estimate:

    Once you get any better estimate, remember the ratio between the naive and the better estimate. Apply that ratio to later naive estimates. This will give you decent estimates real time for changing parameters.

  • Use machine learning to improve the naive estimate?
  • Refactor the code to use a different method for file size estimation:
    // TODO: The whole estimation thing should be split out into a separate method and the things that are shared should also be split out.

Other ideas welcome.

@sindresorhus sindresorhus added enhancement New feature or request help wanted Extra attention is needed labels Oct 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant