{"id":20442,"date":"2018-02-06T16:41:06","date_gmt":"2018-02-06T21:41:06","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=20442"},"modified":"2018-02-06T16:41:06","modified_gmt":"2018-02-06T21:41:06","slug":"serialization-on-macos-and-ios-speed-and-size","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2018\/02\/06\/serialization-on-macos-and-ios-speed-and-size\/","title":{"rendered":"Serialization on macOS and iOS: Speed and Size"},"content":{"rendered":"<p><a href=\"https:\/\/holtwick.de\/blog\/serialization\">Dirk Holtwick<\/a>:<\/p>\n<blockquote cite=\"https:\/\/holtwick.de\/blog\/serialization\">\n<p>Overall for my personal purposes JSON and MessagePack seem to be the most appropriate ones. I was very positively surprised of the JSON results. MessagePack as the clear winner in the size comparison is probably the best choice for the projects I'm working on.<\/p>\n<p>I was very disappointed of KeyedArchiver, which I previously expected to be in the top field. If not required for Apple OS specific purposes it really does not make sense to use any of those proprietary formats anymore.<\/p>\n<\/blockquote>\n\n<p>I like the old, deprecated <code>NSArchiver<\/code>. It scales much better than <code>NSKeyedArchiver<\/code>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Dirk Holtwick: Overall for my personal purposes JSON and MessagePack seem to be the most appropriate ones. I was very positively surprised of the JSON results. MessagePack as the clear winner in the size comparison is probably the best choice for the projects I'm working on. I was very disappointed of KeyedArchiver, which I previously [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[69,31,1472,507,30,1529,138,71,866],"class_list":["post-20442","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-ios","tag-ios-11","tag-json","tag-mac","tag-macos-10-13","tag-optimization","tag-programming","tag-xml"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/20442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=20442"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/20442\/revisions"}],"predecessor-version":[{"id":20443,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/20442\/revisions\/20443"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=20442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=20442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=20442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}