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

Optimize multiple apply calls #8

Open
indutny opened this issue Sep 11, 2012 · 4 comments
Open

Optimize multiple apply calls #8

indutny opened this issue Sep 11, 2012 · 4 comments
Assignees

Comments

@indutny
Copy link
Collaborator

indutny commented Sep 11, 2012

Template bodies that have more than one apply call can be optimized in a following way:

apply(...);
apply(...);
apply(...);

could be transformed

var _applies = _getApplies(this);

_applies[0](...);
_applies[1](...);
_applies[2](...);

_getApplies will do template matching to go as deep as possible in xjst's decision tree

@ghost ghost assigned indutny Sep 11, 2012
@indutny
Copy link
Collaborator Author

indutny commented Sep 11, 2012

/cc @veged

@druxa
Copy link
Collaborator

druxa commented Sep 11, 2012

Oh, it's just an issue. I hoped to find it implemented already =)

@indutny
Copy link
Collaborator Author

indutny commented Sep 11, 2012

Sorry, that's miserable for me too.

@arikon
Copy link
Collaborator

arikon commented Nov 27, 2012

Any chances to be implemented soon? ;)

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

3 participants