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

perf: filedef.Listener change fileSets data type to array #354

Merged

Conversation

muktihari
Copy link
Owner

  • Using array instead of map for fileSets field in filedef.Listener so we don't do allocation, slightly improve performance.
  • Introduce WithFileFunc options that do not allocate when changing the predefined files, and it's now preferable than using WithFileSets that requires allocation.

@muktihari muktihari added the performance Changes related to performance improvement label Aug 13, 2024
@muktihari muktihari self-assigned this Aug 13, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (9c8e76f) to head (2f0afcf).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #354   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           41        41           
  Lines         3697      3705    +8     
=========================================
+ Hits          3697      3705    +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@muktihari muktihari merged commit 774e1b1 into master Aug 13, 2024
4 checks passed
@muktihari muktihari deleted the perf/filedef-listener-change-filesets-data-type-to-array branch August 13, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Changes related to performance improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants