Skip to content

High Performance JSON Serialization for ActiveRecord & Ruby Objects

License

Notifications You must be signed in to change notification settings

danielmalaton/panko_serializer

 
 

Repository files navigation

Panko

Build Status

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

To achieve it's performance:

  • Oj - Panko relies Oj since it's fast and allow 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 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.

About

High Performance JSON Serialization for ActiveRecord & Ruby Objects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 69.6%
  • C 30.4%