Skip to content
High Performance JSON Serialization for ActiveRecord & Ruby Objects
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
benchmarks ObjectWriter suport Jun 1, 2019
docs Fix typo: serailizer -> serializer Jun 29, 2019
ext/panko_serializer Use straight equality instead of rb_equal Jun 1, 2019
spec [issue-47] Raise error if serializer is reused Jul 18, 2019
.clang-format Update clang-format Dec 30, 2018
.gitignore Ignoring byebug & bundle files Dec 16, 2017
.rspec Initial Commit Aug 13, 2017
.rubocop.yml Rubocop Jun 23, 2018
.travis.yml Fix CI Jun 1, 2019
LICENSE.txt Initial Commit Aug 13, 2017 Fix build error Mar 22, 2019
Rakefile Clean before compile Jun 1, 2019
panko_serializer.gemspec adjust ci for ruby versions compat Apr 20, 2019


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



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

You can’t perform that action at this time.