Skip to content

Optimize multiple apply calls #8

@indutny

Description

@indutny

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions