Skip to content

Use $[] instead of $_h[] inside the generated functions - #45

Merged
developit merged 1 commit into
developit:custom-jsx-parserfrom
jviide:custom-jsx-parser-05
Dec 19, 2018
Merged

developit merged 1 commit into
developit:custom-jsx-parserfrom
jviide:custom-jsx-parser-05

Conversation

@jviide

@jviide jviide commented Dec 19, 2018

Copy link
Copy Markdown
Collaborator

Because the function name $_h is not a placeholder in the new custom parser it can be replaced with something shorter - like $. This shaves off few bytes from the code size (584 B for htm.mjs.br instead of 588 B).

@jviide jviide changed the title Use the $[] instead of $_h[] inside the generated functions Use $[] instead of $_h[] inside the generated functions Dec 19, 2018
@jviide
jviide requested a review from developit December 19, 2018 17:41

@developit developit left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call!

@developit
developit merged commit 9a8c8f0 into developit:custom-jsx-parser Dec 19, 2018
@jviide
jviide deleted the custom-jsx-parser-05 branch December 19, 2018 18:06
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

Successfully merging this pull request may close these issues.

2 participants