been playing with pervasive structs in swift; is there a best practice for archiving them? a __conversion to NSData?
Conversation
Replying to
If you needed more efficiency, you could use use e.g. NSCoder (which would avoid copying those buffers).
Replying to
I was scared away from NSCoder since structs can’t officially implement NSCoding, but I guess internal use still makes sense
1
Yeah, you can make your own NSCoding-like protocol. Don't have to use NSCoder—the important idea is in-place buffer writes.

