Farbfetzen / fractalplotr

Make beautiful fractals with R
Other
0 stars 0 forks source link

Improve memory footprint of package #12

Open Farbfetzen opened 5 years ago

Farbfetzen commented 5 years ago

I could store the color as a string "#FFFFFF" or as an integer 256**3-1 (both are the same value. But the objects have different sizes. Is this really necessary? How big are the results anyway? I mean with a sidelength of 2000 * 1000 an integer matrix is only about 8 MB big. And strangely it's the same size for strings. So avoid unnecessary complication in the code if the improvements don't justify it. But be careful not tomake it a double because that is 160MB.

In short: See where the memory footprint of the package can be improved and then see if it is an easy fix or if it is necessary. If not, then don't do it.