• Stars
    star
    568
  • Rank 78,502 (Top 2 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 7 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

High Performance JSON Serialization for ActiveRecord & Ruby Objects

Panko

Build Status

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

To achieve its 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.

Support

License

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