-
Notifications
You must be signed in to change notification settings - Fork 77
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
[Suggestion] Use the String Interning for Candlestick.Symbol property. #84
Comments
Candlestick.Symbol
property.
Actually it would be awesome to use the |
For #84. Update static assets and symbols.
@sguryev, good suggestion. I've added string interning to the assets and symbols. Feel free to close this issue when you can verify the memory usage is optimized with latest code or the next release. Thanks. |
Hmmm... I have left a couple of comments. They says that literals are interned by default. Since you have all the possible symbols as literals in the Cache they should be interned in all other places: (Binance API response deserialization, etc). Not sure if it work for the Dictionary keys though. |
You have the code generation there. Is it design time generator? |
@sguryev, your're right about string literals; I've corrected. Thanks. Yes, the known symbols will be interned by the static The |
I think we can close the issue now. Thank you! |
I'm making a lot of REST API calls as well as WebSocket connections. dotMemory says that I can optimize memory by using String Interning for frequently used string values (just imagine - 1000 candlesticks with the same symbol
ETHBTC
x intervals)Article to read: https://blog.jetbrains.com/dotnet/2015/02/12/string-interning-effective-memory-management-with-dotmemory/
The text was updated successfully, but these errors were encountered: