Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

perf(jqLite): only take str.split() path when needed #8648

Closed
wants to merge 1 commit into from

Conversation

caitp
Copy link
Contributor

@caitp caitp commented Aug 17, 2014

bda673f changed code to only use
str.split() when necessary, but the result was that str.split() would
always be taken unless ' ' was the first character in the string, negating the
effectiveness of the perf fix.

/cc @IgorMinar --- re bda673f#commitcomment-7417474

Lets check this in fast, since it's such a tiny change

bda673f changed code to only use `str.split()` when necessary,
but the result was that `str.split()` would always be taken unless ' ' was the first character
in the string, negating the effectiveness of the perf fix.
@IgorMinar
Copy link
Contributor

This looks correct. The weird thing is that even the broken optimization made huge perf difference.

@caitp
Copy link
Contributor Author

caitp commented Aug 17, 2014

interesting

@caitp caitp closed this in 187b1b8 Aug 17, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants