Skip to content

Implementation with objects instead of arrays and speed tests to compare#2

Open
jdforsythe wants to merge 1 commit intocoldhead:masterfrom
jdforsythe:asobjects
Open

Implementation with objects instead of arrays and speed tests to compare#2
jdforsythe wants to merge 1 commit intocoldhead:masterfrom
jdforsythe:asobjects

Conversation

@jdforsythe
Copy link

I modified the file and created a new implementation using objects (with left and right properties) instead of arrays. I thought it was a fun exercise and was curious if the objects would outperform the arrays. The included test page shows (on my machine) a 0.5-1% speed advantage with arrays.

I simply plopped objects in and made zero performance tweaks.

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.

1 participant