Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: Improve merger.Mergefile (#1920)
**What type of PR is this?** perf improvement **What package or component does this PR mostly affect?** gazelle core **What does this PR do? Why is it needed?** This slightly improve runtime perf due to avoiding allocations of the error object and reduced GC pressure [Profile](https://private-user-images.githubusercontent.com/94403429/367062767-c15a6a5d-e237-463e-beaf-332aa0fe4634.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNzcwMjAsIm5iZiI6MTcyNjE3NjcyMCwicGF0aCI6Ii85NDQwMzQyOS8zNjcwNjI3NjctYzE1YTZhNWQtZTIzNy00NjNlLWJlYWYtMzMyYWEwZmU0NjM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDIxMzIwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRhNmM4MGY5YTI3OTNlNDc4YjI1YTNlYzUwMGNhMmE4ZDIyNjk3ZjUzZDg5NWE2NmEyZjM0NTQ5YmMyYzY2MjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kIYCIu8U3kE3P7bq6rhNe3T2WgYuDKmlyQlq_lfn--M) **Which issues(s) does this PR fix?** Fixes # **Other notes for review**
- Loading branch information