-
Notifications
You must be signed in to change notification settings - Fork 49
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
Sorting network visualizer rewrite #74
Conversation
Remove String.format usage
There appears to be a memory leak somewhere, but I can't find it.
Some sizing data is messed up, causing the browser to think the image is much bigger than it actually is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignored whitespace changes, didn't look much at implementation specifics.
wonder if code duplication could be avoided in the sorting network svg generator algorithm, but don't wanna figure out how it works lol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, I figured out how the svg algorithm works.
perhaps the "grouping" ("groups" are the sets of compswaps close to each other and vertically overlapping) part could be re-implemented for a performance boost (it's like O(n^2)
for each group of size n
) and to horizontally compact the groups. It reminds me of a familiar coding problem... but that'd be for after this PR lol
So are we all ready to merge then? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
review on the new commits
Are we finally ready then? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good:tm:
This PR rewrites the sorting network visualizer from the ground up, in pure Java. This removes the dependency on Python, and makes visualization much faster (because Java is faster than Python).