Khan Winter @khanwinter.com · Jun 4

Also fun tidbit with this is that I was able to implement fast, lossless, compression for all images by default (lzfse). Images stored here are usually a chunk smaller than Apple’s photos app. Swift made this fun. I’ve got a library now for creating async streams of in/deflate file data.

1 likes 1 replies

?

Replies

Khan Winter · Jun 4

All that processing happens off the main thread and in Swift’s thread pool. The async streaming also prevents memory spikes. It’s kinda the golden ticket and I’ll likely share more later on this in particular. Learned a lot about architecting async processes while saving user data.