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

Problem with unused library functions #4

Open
hcvazquez opened this issue Dec 23, 2016 · 0 comments
Open

Problem with unused library functions #4

hcvazquez opened this issue Dec 23, 2016 · 0 comments

Comments

@hcvazquez
Copy link

My name is Hernan; with a group of colleagues we are conducting a research about unused code present in dependencies of JavaScript projects. We call this functions, UFF (Unused foreign functions). We found that in most projects there exist a great amount of UFF that are being included in the final bundle.

In the case of chomsky (v 1.0.8) our tools detected approximately 1000 unused function in the dependencies (systemjs, when, rxjs, symbol-observable, numbro, moment-timezone, moment). Removing those functions, the size of chomsky bundled could be reduced at least 38% (All tests passed). I’m attaching the reduced version of your project.
bundle(optimized).txt

I’ll be very grateful if you can answer me the following questions:
-Did you were aware of the existence of these unused functions in your projects?
-Do you think that this is a problem?

Thanks in advance.

Cheers,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant