Jump to content

Snappy: Difference between revisions

From EDM2
Created page with "A run time compression C++ class library that offers fairly moderate compression in return for high compression speeds and in particular excellent decompression speeds. In..."
 
Ak120 (talk | contribs)
mNo edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
A run time compression [[C++]] class library that offers fairly moderate compression in return for high compression speeds and in particular excellent decompression speeds. Intended to be used for internal data compression in databases and similar applications rather than file compression, but in those sort of cases a low load decompression can in addition to saving space actually speed up reading and writing to and from slow peripherals such as hard drives.
Snappy is a compression/decompression [[C++]] class library. It offers fairly moderate compression in return for high compression speeds and in particular excellent decompression speeds. Intended to be used for internal data compression in databases and similar applications rather than file compression, but in those sort of cases a low load decompression can in addition to saving space actually speed up reading and writing to and from slow peripherals such as hard drives.


====Bindings and translations====
==Bindings==
The software comes with [[C]] bindings, but there also exists an unofficial port to C. Bindings and or ports/re-implementations are available for amongst others [[Haskell]] (Binding), [[Java]] (Binding+port), [[LISP|Common Lisp]] (Binding+port), [[Lua]] (Binding), [[Node.js]] (Binding), [[Perl]] (Binding), [[PHP]] (Binding), [[Python]] (Binding), [[Ruby]] (Binding) and [[Smalltalk]] (Binding).
The software comes with [[C]] bindings, but there also exists an unofficial port to C.
 
The Snappy C++ class and the C bindings and port appear to compile fairly cleanly on OS/2 with the usual caveats about compiler and system differences and so on, however when it comes to foreign language bindings and ports you may for some of them need to do some additional work since some of the common Windows and Unix like implementations differ quite a bit from the OS/2 ones and a number of the current OS/2 implementations are getting quite old, the Java ports run like a charm though. In fact the library is written entirely in C++ with no in-line assembly and generic enough to be easily portable to most systems, although on single tasking systems like [[DOS]] they make little sense unless you are using something like [[TopSpeed C++]] that can actually create DOS threads.
 
==Other programming languages==
Bindings are available for amongst others:
*Node.js (may be usable with other [[ECMAScript]] implementations as well),
*[[Haskell]], [[Java]], [[Common Lisp]], [[Lua]], [[Perl]], [[PHP]], [[Python]], [[Ruby]] and [[Smalltalk]].
Ports/re-implementations:
* Java, Common Lisp, C


==Links==
==Links==
* [https://code.google.com/p/snappy/ Google Snappy homepage]
* [http://google.github.io/snappy/ Snappy by google]
* [https://github.com/google/snappy Snappy repository] on [[GitHub]]
* [https://github.com/google/snappy Snappy repository] on [[GitHub]]
;Ports
* [https://github.com/andikleen C port by Andi Kleen]
* [https://github.com/andikleen C port by Andi Kleen]
* [https://github.com/brown/snappy Common Lisp port by Robert Brown]
;Re-implementations
* [https://code.google.com/p/jsnappy/ Jsnappy] - A pure Java re-implementation of Snappy.
* [https://github.com/dain/snappy Snappy in Java by Dain Sundstrom] - Another Java re-implementation, supposedly faster than Jsnappy.
;Bindings
* [https://github.com/mumez/sqnappy Squak Smalltalk bindings]
* [https://github.com/decster/jnicompressions JNI bindings for LZ4 and Snappy]]
====See also====
* [[LZ4]] - Similar C library
* [[LZO]] - Similar C library although much slower
==Publications==
* [http://blog.erdemagaoglu.com/post/4605524309/lzo-vs-snappy-vs-lzf-vs-zlib-a-comparison-of A comparison of Java implementations of LZO, Snappy, LZ4 and zLib] - Differences apparently not as great as with the original C/C++ implementations


==License and availability==
==License and status==
* Open source software made available under the [[Three Clause BSD License]] - Active development.
* Open source software made available under the [[Three Clause BSD License]] - Active development.


==Authors & publisher==
==Authors & publisher==
* [[Google]]
*Google
* Andi Kleen (C port)
*Andi Kleen (C port)
*Robert Brown (LISP port)
*Dain Sundstrom (Snappy in Java)
*Masashi Umezawa (Squak port)
*Binglin Chang (Java/JNI bindings)


[[Category:Tools]][[Category:C++]][[Category:Software written in C++]][[Category:Open Source Software]][[Category:MS Windows Tools]][[Category:BeOS Tools]][[Category:Generic Unix Tools]][[Category:Amiga Tools]][[Category:Atari ST Tools]][[Category:Tools]][[Category:Tools]][[Category:Tools]][[Category:Tools]][[Category:Tools]][[Category:Tools]][[Category:Tools]]
[[Category:C++ Class Libraries]][[Category:Compression]][[Category:Software written in C++]][[Category:Open Source Software]]

Latest revision as of 02:00, 22 March 2018

Snappy is a compression/decompression C++ class library. It offers fairly moderate compression in return for high compression speeds and in particular excellent decompression speeds. Intended to be used for internal data compression in databases and similar applications rather than file compression, but in those sort of cases a low load decompression can in addition to saving space actually speed up reading and writing to and from slow peripherals such as hard drives.

Bindings

The software comes with C bindings, but there also exists an unofficial port to C.

The Snappy C++ class and the C bindings and port appear to compile fairly cleanly on OS/2 with the usual caveats about compiler and system differences and so on, however when it comes to foreign language bindings and ports you may for some of them need to do some additional work since some of the common Windows and Unix like implementations differ quite a bit from the OS/2 ones and a number of the current OS/2 implementations are getting quite old, the Java ports run like a charm though. In fact the library is written entirely in C++ with no in-line assembly and generic enough to be easily portable to most systems, although on single tasking systems like DOS they make little sense unless you are using something like TopSpeed C++ that can actually create DOS threads.

Other programming languages

Bindings are available for amongst others:

Ports/re-implementations:

  • Java, Common Lisp, C

Links

Ports
Re-implementations
Bindings

See also

  • LZ4 - Similar C library
  • LZO - Similar C library although much slower

Publications

License and status

Authors & publisher

  • Google
  • Andi Kleen (C port)
  • Robert Brown (LISP port)
  • Dain Sundstrom (Snappy in Java)
  • Masashi Umezawa (Squak port)
  • Binglin Chang (Java/JNI bindings)