Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yosiat/panko_serializer
High Performance JSON Serialization for ActiveRecord & Ruby Objects
https://github.com/yosiat/panko_serializer
activerecord json-serialization oj performance ruby serialization serializer
Last synced: 2 days ago
JSON representation
High Performance JSON Serialization for ActiveRecord & Ruby Objects
- Host: GitHub
- URL: https://github.com/yosiat/panko_serializer
- Owner: yosiat
- License: mit
- Created: 2017-03-18T18:14:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T12:37:59.000Z (3 months ago)
- Last Synced: 2024-10-25T11:23:24.821Z (3 months ago)
- Topics: activerecord, json-serialization, oj, performance, ruby, serialization, serializer
- Language: Ruby
- Homepage: https://panko.dev
- Size: 1020 KB
- Stars: 586
- Watchers: 14
- Forks: 35
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Panko
![Build Status](https://github.com/yosiat/panko_serializer/workflows/Panko%20Serializer%20CI/badge.svg?branch=master)
Panko is a library which is inspired by ActiveModelSerializers 0.9 for serializing ActiveRecord/Ruby objects to JSON strings, fast.
To achieve its [performance](https://panko.dev/docs/performance/):
* Oj - Panko relies on Oj since it's fast and allows for incremental serialization using `Oj::StringWriter`
* Serialization Descriptor - Panko computes most of the metadata ahead of time, to save time later in serialization.
* Type casting — Panko does type casting by itself, instead of relying on ActiveRecord.To dig deeper about the performance choices, read [Design Choices](https://panko.dev/docs/design-choices/).
Support
-------- [Documentation](https://panko.dev/docs)
- [Getting Started](https://panko.dev/docs/getting-started/)License
-------The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).