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

Refactor: RAM optimizations #83

Open
1 of 3 tasks
dd84ai opened this issue Jan 21, 2025 · 3 comments
Open
1 of 3 tasks

Refactor: RAM optimizations #83

dd84ai opened this issue Jan 21, 2025 · 3 comments

Comments

@dd84ai
Copy link
Member

dd84ai commented Jan 21, 2025

Go with RAM profiler https://medium.com/compass-true-north/memory-profiling-a-go-service-cd62b90619f9

Try to find duplicates of AppData.

  • Check it is present twice in inuse_objects profiling
  • Try running without darkrelay
@dd84ai
Copy link
Member Author

dd84ai commented Jan 21, 2025

i have as a plan, to go with Memory Profiler and deallocate all not necessary data.

Potentially even not storing some data that i could export on a fly. Or caching if necessary already exported version on a disk in gob

Expore RAM compressions in addition like https://github.com/ostafen/zipcache

@dd84ai
Copy link
Member Author

dd84ai commented Feb 10, 2025

https://www.benburwell.com/posts/flame-graphs-for-go-with-pprof/
https://sathishvj.medium.com/flamegraphs-for-code-optimization-with-golang-and-speedscope-80c20725fdd2
Task to extend later. found how to build memory flamegraphs for Golang. With this technology I will be able to do intensive RAM optimizations

@dd84ai
Copy link
Member Author

dd84ai commented Feb 10, 2025

Optimize Graph output, by converting Dense to only needed Scarse matrix stuff. Check how much it will save, in theory a lot of RAM will be saved here.

@dd84ai dd84ai moved this to Todo in @dd84ai's Dark Tools Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant