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

Update spritz.js #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update spritz.js #70

wants to merge 1 commit into from

Conversation

ciderpunx
Copy link

There was a redundant call to see if the length of word was divisible by two, with both branches doing the same thing.

There was a redundant call to see if the length of word was divisible buy two, with both branches doing the same thing.
@tomByrer
Copy link
Contributor

Yo dawg, I see you like optimizations, so I optimized your optimization.

@tomByrer tomByrer mentioned this pull request Mar 13, 2014
tomByrer added a commit to tomByrer/OpenSpritz that referenced this pull request Mar 13, 2014
Miserlou#70 patched wrong branch
Not sure why this is?
```js
        var start = '';
        var end = '';
        start = decodeEntities(word.slice(0, word.length/2));
        end = decodeEntities(word.slice(word.length/2, word.length));
```
@tomByrer
Copy link
Contributor

This PR should be closed in preference to my PR (used right branch). But you spotted an perf op well @ciderpunx ! thanks :)

@Miserlou
Copy link
Owner

@ciderpunx totally random question, but did you ever post on the Nothing Nice To Say / n00dplz forums?

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