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

ci(lint): add prealloc #1

Closed
wants to merge 20 commits into from
Closed

ci(lint): add prealloc #1

wants to merge 20 commits into from

Conversation

rominf
Copy link
Owner

@rominf rominf commented Feb 3, 2024

About this change—what it does

Add https://github.com/alexkohler/prealloc to find slice declarations that could potentially be pre-allocated and address linter errors.

This is partial implementation of aiven#858.

Why this way

make + assign pattern was used in codebase already and it works faster than append.

staceysalamon-aiven and others added 20 commits January 26, 2024 11:33
Add https://github.com/alexkohler/prealloc to find slice declarations
that could potentially be pre-allocated and address linter errors.
@rominf rominf closed this Feb 5, 2024
@rominf rominf deleted the rominf-prealloc branch February 10, 2024 08:57
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.

6 participants