Re:Replacing Photoshop with NSString
by charles_parnot on Saturday March 21, 2015 @04:05PM
(#9244024)
Nice to see the actual comparison of the binary size (and there is the 2x and 3x png). On the other hand, to be fair, the memory footprint will be more with the ASCII version (text + final NSImage loaded as bitmap in memory) compared to png (only the bitmap in memory, directly loaded from disk). The size of the bitmap is big anyway: there is no compression.
It is almost the same size of the smallest possible SVG polygon of similar shape consisting of 59 characters:
Using even the simplest coordinates notation it could look like 24 characters: (Three characters added to keep "Close and fill" information.)Smallest 7×8 px PNG with the same image is 96 bytes large: