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 the slice access in Golang #198

Closed

Conversation

roma-glushko
Copy link

Optimizing the slice access in the golang loop source code per this subreddit conversation:

https://www.reddit.com/r/golang/comments/1h150ho/go_is_slower_than_java_on_same_code/

Golang's compiler doesn't do much optimization around slice access which leads to awful benchmark results.

@roma-glushko roma-glushko changed the title Optimize the slice access in golang ⚡️Optimize the slice access in Golang Dec 5, 2024
@karololszacki
Copy link

This looks like a duplicate of #150

@bddicken
Copy link
Owner

bddicken commented Dec 6, 2024

Thanks for submitting this @roma-glushko. As @karololszacki pointed out, we already have another PR with a similar change and some discussion, so I ill close this one out.

@bddicken bddicken closed this Dec 6, 2024
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