henrypoydar / panko_serializer

High Performance Serialization for ActiveRecord

Home Page:https://yosiat.github.io/panko_serializer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Panko

Build Status

Panko is library which is inspired by ActiveModelSerializers 0.9 for serializing ActiveRecord objects to JSON strings, fast.

To achieve it's performance:

  • Oj - Panko relies Oj since it's fast and allow to to serialize incrementally 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 it's self, instead of relying ActiveRecord.

To dig deeper about the performance choices, read Design Choices.

Support

License

The gem is available as open source under the terms of the MIT License.

About

High Performance Serialization for ActiveRecord

https://yosiat.github.io/panko_serializer

License:MIT License


Languages

Language:Ruby 64.3%Language:C 35.7%