You've already forked go-profiler-notes
mirror of
https://github.com/DataDog/go-profiler-notes.git
synced 2025-07-12 23:50:13 +02:00
Merge pull request #6 from raidancampbell/main
minor spelling corrections
This commit is contained in:
@ -123,7 +123,7 @@ Performing GC involves a lot of expensive graph traversal and cache thrashing. I
|
||||
|
||||
Generally speaking the cost of GC is proportional to the amount of heap allocations your program performs. So when it comes to optimizing the memory related overhead of your program, the mantra is:
|
||||
|
||||
- **Reduce**: Try to to turn heap allocations into stack allocations or avoid them alltogether. Minimizing the number of pointers on the heap also helps.
|
||||
- **Reduce**: Try to turn heap allocations into stack allocations or avoid them altogether. Minimizing the number of pointers on the heap also helps.
|
||||
- **Reuse:** Reuse heap allocations rather than replacing them with new ones.
|
||||
- **Recycle:** Some heap allocations can't be avoided. Let the GC recycle them and focus on other issues.
|
||||
|
||||
|
Reference in New Issue
Block a user