Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikhailmaslo/json-parsing-benchmarks
https://github.com/mikhailmaslo/json-parsing-benchmarks
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mikhailmaslo/json-parsing-benchmarks
- Owner: mikhailmaslo
- Created: 2021-08-21T13:54:27.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-24T07:27:33.000Z (over 3 years ago)
- Last Synced: 2024-12-09T04:46:59.015Z (2 months ago)
- Language: Swift
- Size: 11.9 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Overview
`Demo` - console application for Demo on presentation
`Snippets` - snippets for `Demo` (Copy them to `/Users/YourUsername/Library/Developer/Xcode/UserData/CodeSnippets` replacing `YourUsername` with your actual username)
`Benchmarks` - project with tests on iOS platform
# Benchmark results

## Canada

## Apache

## Github

# Links
## Used Libraries
- [SwiftyJSON](https://github.com/SwiftyJSON/SwiftyJSON) - JSONSerialization + Dictionary wrapper
- [ObjectMapper](https://github.com/tristanhimmelman/ObjectMapper) - JSONSerialization + Dictionary wrapper
- [HandyJSON](https://github.com/alibaba/HandyJSON) - Swift reflection & Objective-C introspection
- [ZippyJSON](https://github.com/michaeleisel/ZippyJSON) - parsing is written on C++ [simdjson](https://github.com/simdjson/simdjson). Custom Decoder + Codable
- [swift-extras-json](https://github.com/swift-extras/swift-extras-json) - pure Swift - doesn't depend on Foundation. Custom Decoder + Codable## Other
- [Swift reflection](https://medium.com/@weswickwire/creating-a-swift-runtime-library-3cc92fc486cc) - how you can set variable in structs / classes using Swift reflection
- Codable is using JSONSerialization under the hood - [proof](https://github.com/apple/swift/blob/d93e0dfa01ddd897ba733b6a2d43b05e2f0073f9/stdlib/public/SDK/Foundation/JSONEncoder.swift#L1105)
- [Sourcery in practice](https://khanlou.com/2017/09/sourcery-in-practice/) - example for (auto) Codable
- [How GTA V load time was cut by 70 %](https://nee.lv/2021/02/28/How-I-cut-GTA-Online-loading-times-by-70/) (spoiler: json was too big and parsing implementation was too naive)
- What Apple [thought](https://developer.apple.com/swift/blog/?id=37) about reflection before Codable was released
- [Parsing JSON Really Quickly: Lessons Learned](https://www.youtube.com/watch?v=wlvKAT7SZIQ) - by the author of [simdjson](https://github.com/simdjson/simdjson)