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

Performance optimizations #16

Open
RReverser opened this issue Oct 3, 2013 · 1 comment
Open

Performance optimizations #16

RReverser opened this issue Oct 3, 2013 · 1 comment

Comments

@RReverser
Copy link
Member

  • Since Type instances are created less often than used, we can achieve some performance gain by moving properties from prototypes to constructors so getting same hidden classes but not involving engine to look through prototype chain each time.
    (should affect only inherit utility function)
  • Try compilation of declarative types into read/write functions using new Function(...).
@RReverser
Copy link
Member Author

Looks like precompiling doesn't give any serious performance gain while does increase amount and complexity of code.

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

No branches or pull requests

1 participant