ClassicHealPrediction

ClassicHealPrediction

113k Downloads

updateHealPrediction() allocates ~100 MB of garbage per minute due to ColorMixin

emmericp opened this issue ยท 0 comments

commented

Flame graph of allocations during the Mechanical Menagerie fight in Gnomeregan: https://emmericp.github.io/Perfy/perfy-memory.svg measured using https://github.com/emmericp/Perfy

This probably explains reported problems about micro-stuttering, e.g., #2

The problem is that you call CreateColor very often which is not the intended use of CreateColor. You could instead store a ColorMixin instead of the rgb values in the settings to avoid this.

Alternatively a cache for CreateColor would do the trick.