Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Small performance improvements #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JulianRooze
Copy link

Overall about 10-20% reduction in memory allocated by simple metric calls (in my test it went from 630 bytes per call to 520) and a small improvement in overall speed (~5%), but the call to Socket.Send dominates the time so it's hardly noticeable.

I also added a .editorconfig to make it easier to collaborate on this project when you have different editor settings.

- Pre-formatting the default tags as a string, saving an array allocation + Array.Copy
- Always using StringBuilder over concatenation, this resulted in fewer allocations and higher performance
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant