thoughtworksinc / zerocost.scala   1.0.0-M0

Apache License 2.0 GitHub

Zero-cost Abstractions in Scala

Scala versions: 2.11 2.12

ZeroCost.scala

ZeroCost.scala is a collection of data-structures that have zero memory overhead. All those data-structures are opacity aliases, exposing their features via static methods and cats type classes.

Unlike value classes, our ZeroCost types never box/unbox, resulting in better performance and zero memory overhead, especially when using those types in tuples and collections.