Giter Site home page Giter Site logo

nippy's Introduction

Taoensso open source
Documentation | Latest releases | Get support

Nippy

The fastest serialization library for Clojure

Clojure's rich data types are awesome. And its reader allows you to take your data just about anywhere. But the reader can be painfully slow when you've got a lot of data to crunch (like when you're serializing to a database).

Nippy is an attempt to provide a reliable, high-performance drop-in alternative to the reader.

Used by Carmine, Faraday, PigPen, Onyx, XTDB, Datalevin, and others.

Latest release/s

  • 2023-10-11 3.3.0 (stable): changes
  • 2023-09-26 3.4.0-beta1 (dev): changes

Main tests Graal tests

See here for earlier releases.

Why Nippy?

  • Small, simple all-Clojure library
  • Terrific performance: the best for Clojure that I'm aware of
  • Comprehensive support for all standard data types
  • Easily extendable to custom data types
  • Robust test suite, incl. full coverage for every supported type
  • Auto fallback to Java Serializable when available
  • Auto fallback to Clojure Reader for all other types (including tagged literals)
  • Pluggable compression with built-in LZ4, Zstandard, etc.
  • Pluggable encryption with built-in AES128
  • Tools for easy + robust integration into 3rd-party libraries, etc.
  • Powerful thaw transducer for flexible data inspection and transformation

Performance

Since its earliest versions, Nippy has consistently been the fastest serialization library for Clojure that I'm aware of. It offers:

  • Roundtrip times >12x faster than tools.reader with 60% smaller data size.
  • Roundtrip times >2x faster than data.fressian with 30% smaller data size.

benchmarks-png

The benchmark code can be easily run in your own environment.

Documentation

Funding

You can help support continued work on this project, thank you!! ๐Ÿ™

License

Copyright ยฉ 2012-2024 Peter Taoussanis.
Licensed under EPL 1.0 (same as Clojure).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.