Skip to content

Pre-allocate space for _parsed#6815

Closed
kurkle wants to merge 1 commit intochartjs:masterfrom
kurkle:parsing-disabled-2
Closed

Pre-allocate space for _parsed#6815
kurkle wants to merge 1 commit intochartjs:masterfrom
kurkle:parsing-disabled-2

Conversation

@kurkle
Copy link
Member

@kurkle kurkle commented Dec 7, 2019

Alternative to #6814
This is not as good, but just wanted to point this optimization out - it's probably usable in other situations.

Master:
image

PR:
image

@kurkle
Copy link
Member Author

kurkle commented Dec 7, 2019

Tested without disabling parsing: surprisingly this does not improve that case at all.

@benmccann
Copy link
Contributor

Yeah, it's worth pointing out. We should keep our eyes open for other places it might be useful. I think I'd prefer one of the other two PRs in this instance since I believe they're faster

@kurkle
Copy link
Member Author

kurkle commented Dec 7, 2019

@benmccann I agree.
This one could have been faster while parsing is turned on, but for some reason is not. Anyway, I think I got the pointer out and am closing this.

@kurkle kurkle closed this Dec 7, 2019
@kurkle kurkle deleted the parsing-disabled-2 branch December 7, 2019 15:11
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.

3 participants