Better HN
topnewbestaskshowjobs
Log inSign up

mallorypaine

27 karma · joined Oct 22, 2013 (13y ago) · 4 submissions

Submissions

comment 2y ago · link · parent

Tesla paid out because FSD abruptly steered him out of the lane and into the barrier.

comment 6y ago · link · parent

2008 was also when the iPhone SDK unleashed massive opportunity.

comment 13y ago · link · parent

When the pages are first accessed, the file data is paged in, and yes, this will be a blocking operation. One way to mitigate this would be to force the data to be paged in using a background thread, so that the pages are live by the time Core Animation needs those bytes to render the layer. This page preheating isn't usually necessary for small images, which is the primary use case for FIC.

FIC really pays off in a scenario like Path's mobile app. We have many, many small-to-medium-size user images to display, and those images are competing for CPU time with all of the styled text labels we're drawing. The less CPU we have to devote to images, the faster we'll be able to scroll.

comment 13y ago · link · parent

Hello. Mallory Paine here. I wrote FIC. This is not legacy code...it should be trivial to convert it to ARC and performance should be unaffected. I'm a bit old school myself so I chose to write it with manual retains. Does this approach make the code more difficult for you to use within an ARC project?