Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Issue 2451903002: Reduced memory footprint of SkColorSpace_A2B (Closed)

Created:
4 years, 1 month ago by raftias
Modified:
4 years, 1 month ago
Reviewers:
msarett, mtklein, reed1
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Reduced memory footprint of SkColorSpace_A2B Joined its fields together as a union to save up to 8*2+17*4 bytes per instance. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2451903002

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -12 lines) Patch
M src/core/SkColorSpace_A2B.h View 2 chunks +98 lines, -12 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (8 generated)
raftias
4 years, 1 month ago (2016-10-25 21:02:52 UTC) #8
reed1
84 bytes is fine, but given that small size (under the assumption that we don't ...
4 years, 1 month ago (2016-10-25 21:11:49 UTC) #10
msarett
On 2016/10/25 21:11:49, reed1 wrote: > 84 bytes is fine, but given that small size ...
4 years, 1 month ago (2016-10-25 21:15:47 UTC) #11
mtklein_C
4 years, 1 month ago (2016-10-25 21:34:26 UTC) #12
On 2016/10/25 at 21:15:47, msarett wrote:
> On 2016/10/25 21:11:49, reed1 wrote:
> > 84 bytes is fine, but given that small size (under the assumption that we
don't
> > allocate a boat load of these), is the new code easier or harder to
> > read/maintain?
> 
> FWIW, I suggested considering this in its own CL.  Now that we see what it
looks like, I'd lean towards leaving as is (as Rob suggested originally).

Me too.

Powered by Google App Engine
This is Rietveld 408576698