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

[Perf] Template compiler should avoid outputting empty children array #2671

Closed
nolanlawson opened this issue Feb 2, 2022 · 1 comment · Fixed by #2685
Closed

[Perf] Template compiler should avoid outputting empty children array #2671

nolanlawson opened this issue Feb 2, 2022 · 1 comment · Fixed by #2685

Comments

@nolanlawson
Copy link
Collaborator

As described in #2618 (comment), the compiler currently generates a lot of [] to denote empty children. This can just be made implicit in the h function:

// [h]tml node
function h(sel: string, data: VElementData, children: VNodes): VElement {

@nolanlawson nolanlawson changed the title [Perf] Template compiler should avoid outputting empty child array [Perf] Template compiler should avoid outputting empty children array Feb 2, 2022
@uip-robot-zz
Copy link

This issue has been linked to a new work item: W-10660536

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

Successfully merging a pull request may close this issue.

2 participants