Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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).