태터데스크 관리자

도움말
닫기
적용하기   첫페이지 만들기

태터데스크 메시지

저장하였습니다.

'iPhone'에 해당되는 글 18건

  1. 2011/09/21 JSONKit... 만약 정말 빠른 파서를 찾는다면...
mobile/ios2011/09/21 12:10

현재 프로젝트에서 JSONKit (https://github.com/johnezang/JSONKit/) 을 사용하고 있는데, 그 이유를 찾아봤다.

그 이유는 간단했다. 가장 빠르다!

링크의 wiki에 가보면, ( https://github.com/johnezang/JSONKit/wiki ) 다른 내용보다, Performance 라고 하는 카테로그만 소개 되어 있다. ㅎㅎ

그중, 성능 비교한 내용이 있어 공유하고자 한다.
( https://github.com/johnezang/JSONKit/ )

JSONKit

JSONKit is dual licensed under either the terms of the BSD License, or alternatively under the terms of the Apache License, Version 2.0.
Copyright © 2011, John Engelhart.

A Very High Performance Objective-C JSON Library

Parsing Serializing
Deserialize from JSON Serialize to JSON
23% Faster than Binary .plist ! 549% Faster than Binary .plist !
  • Benchmarking was performed on a MacBook Pro with a 2.66GHz Core 2.
  • All JSON libraries were compiled with gcc-4.2 -DNS_BLOCK_ASSERTIONS -O3 -arch x86_64.
  • Timing results are the average of 1,000 iterations of the user + system time reported by getrusage.
  • The JSON used was twitter_public_timeline.json from samsoffes / json-benchmarks.
  • Since the .plist format does not support serializing NSNull, the null values in the original JSON were changed to "null".
  • The experimental branch contains the gzip compression changes.
    • JSONKit automagically links to libz.dylib on the fly at run time– no manual linking required.
    • Parsing / deserializing will automagically decompress a buffer if it detects a gzip signature header.
    • You can compress / gzip the serialized JSON by passing JKSerializeOptionCompress to -JSONDataWithOptions:error:.

JSON versus PLIST, the Ultimate Showdown benchmarks the common JSON libraries and compares them to Apples .plist format.

 이건 뭐 -_-;; 비교가 안되는군

xguru 님도 추천하셨네요~ ( http://twitter.com/#!/xguru/status/97660535541215232 )

Retweeted by  and 25 others

 
뭐, 사용해볼만한 충분한 이유가 되지 않을까요? ^^ 
Posted by THLIFE.net

TRACKBACK http://thlife.net/trackback/1074 관련글 쓰기

댓글을 달아 주세요