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

Optimize backend js #55

Merged
merged 2 commits into from
Jul 21, 2017
Merged

Optimize backend js #55

merged 2 commits into from
Jul 21, 2017

Conversation

absorpheus
Copy link
Contributor

I refactored the compareFunction so it performs better than the previous one.

The loop will now break once we have populated the array with 5 elements, as opposed to iterating through the entire array and shrinking it down using the shrink function

(Note: The shrink function is now pretty redundant, so we will need to refactor our code)

Fixes #43

@AseelM AseelM merged commit afe9578 into master Jul 21, 2017
@AseelM AseelM deleted the optimize-backend-js branch July 21, 2017 10:54
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