JVM data structures that know how to live right in a byte array
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
api/src/main/java/com/imranrashid/oleander
core/src
demos/src/main/scala/com/imranrashid/oleander/demos/dataread
macros/src/main/scala/com/imranrashid/oleander/macros
macrotests/src/test/scala/com/imranrashid/oleander/macros
project
sbt
unmanaged
.gitignore
README.md

README.md

oleander

JVM data structures that know how to live right in a byte array.

This is NOT the same thing as serialization. While java serialization is great, it reads a data structure out of a byte array, and then puts the new data structure somewhere else in memory. In general, this is the behavior you want; but with distributed systems like Hadoop & Spark, sometimes you just want to use those raw bytes directly, to save the time and memory involved in serialization & deserialization.

Unfortunately, b/c java doesn't allow direct casts from byte arrays to other data types, this comes at some cost in performance. But in some use cases, the decreased performance may be worth the memory savings & the time saved.