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

avoid using buf reset #871

Closed
wants to merge 1 commit into from
Closed

avoid using buf reset #871

wants to merge 1 commit into from

Conversation

ucwong
Copy link
Contributor

@ucwong ucwong commented Sep 16, 2023

No description provided.

buf.Reset(f)
return Load(&buf)
buf := bufio.NewReader(f)
return Load(buf)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this to try to avoid an extra allocation for the Reader.

@ucwong ucwong closed this Sep 17, 2023
@anacrolix
Copy link
Owner

I see you're keen to contribute @ucwong, is there something specific you are looking to do?

@ucwong
Copy link
Contributor Author

ucwong commented Dec 7, 2023

I see you're keen to contribute @ucwong, is there something specific you are looking to do?

PR will be created once I find issues in this repo, thank you.

Best Regards

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