Skip to content

Comment on Unusual speed boost: size matters

Comments

Or even better then double:

inline void updateCachedWidth() { m_cachedWidth = computeWidth() * deviceScaleFactor(); }

Ghee, was that line so hard to read ? No it's easier ! (Might have just been an example though.)

I was also wondering why this wasn't done, it must have been an example that was reduced in size.

Came here to ask about this, found your answer. Thanks.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.