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

internals: investigate destructuring #18

Closed
glathoud opened this issue Aug 22, 2019 · 1 comment
Closed

internals: investigate destructuring #18

glathoud opened this issue Aug 22, 2019 · 1 comment

Comments

@glathoud
Copy link
Owner

[this deals with the generated code, in particular the tail call elimination]

Frederico Kereki suggested to use destructuring when "updating" the variables, so that intermediary variables are not needed.

Paying attention to performance and IE11 compatibility (=no destructuring), the plan would look like this:

  • add a hidden option "destructuring", deactivated by default,
  • measure the performance with and without destructuring, at least in FF and Chrome
  • if positive results, make the option activated by default except in IE
@glathoud
Copy link
Owner Author

nope - slow down too big (about -33%) when using destructuring, so we'll keep it deactivated for now.

https://github.com/glathoud/fext#destructuring-18

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