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

Use old style string string formatting instead of string interpolation in performance critical places #49

Open
IgorFedchenko opened this issue Sep 10, 2019 · 0 comments

Comments

@IgorFedchenko
Copy link
Contributor

As per @Aaronontheweb :

One performance nitpick - better off using the old school string formatting syntax than string interpolation, because due to the way Akka.NET's logging is designed we can actually defer allocation of strings until we're ready to print the log statement out to console using the old technique. If the LogLevel is set at INFO, which is is by default, this saves us an unnecessary allocation each time. It can really add up in busy ActorSystems.

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

No branches or pull requests

1 participant