Skip to content

Conversation

mzgoddard
Copy link
Contributor

Resolves

Use less memory.

Proposed Changes

Replace Silhouette._data with Silhouette._colorData

Reason for Changes

_colorData holds the same (and more) data that _data holds. Dropping the _data array saves a lot of memory for a tiny performance degradation in regards to touching object.

I'm not sure we can measure the performance difference.

Benchmark Data

Pending ...

_colorData holds the same (and more) data that _data holds. Dropping
the _data array saves a lot of memory for a tiny performance
degradation in regards to touching object.
@mzgoddard mzgoddard force-pushed the drop-silhouette-alpha-buffer branch from ca922d2 to e022222 Compare February 22, 2019 22:12
Copy link
Contributor

@cwillisf cwillisf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@cwillisf cwillisf assigned gnarf and mzgoddard and unassigned cwillisf Mar 1, 2019
@mzgoddard mzgoddard merged commit 19ee8e8 into scratchfoundation:develop Mar 4, 2019
@mzgoddard mzgoddard deleted the drop-silhouette-alpha-buffer branch March 4, 2019 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants