Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xuwei-k/nobox

immutable primitive array/NonEmptyArray wrapper for Scala
https://github.com/xuwei-k/nobox

data-structures primitive-arrays scala scala-js scala-native

Last synced: 4 days ago
JSON representation

immutable primitive array/NonEmptyArray wrapper for Scala

Awesome Lists containing this project

README

        

# nobox

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.xuwei-k/nobox_2.12/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.xuwei-k/nobox_2.12)
[![scaladoc](https://javadoc.io/badge2/com.github.xuwei-k/nobox_2.13/javadoc.svg)](https://javadoc.io/doc/com.github.xuwei-k/nobox_2.13/latest/nobox/index.html)

immutable primitive array wrapper for Scala

## what's this

nobox means **No** Boxing primitive values.
There are [`ArrayOps`](https://github.com/scala/scala/blob/v2.12.13/src/library/scala/collection/mutable/ArrayOps.scala) and [`WrappedArray`](https://github.com/scala/scala/blob/v2.12.13/src/library/scala/collection/mutable/WrappedArray.scala) in [Scala standard library](http://docs.scala-lang.org/overviews/collections/arrays.html), but these operations sometimes so slow.
This library provide more efficient(faster and less memory) operations for primitive arrays.

### latest stable version

```scala
libraryDependencies += "com.github.xuwei-k" %% "nobox" % "0.4.0"
```

for scala-js, scala-native

```scala
libraryDependencies += "com.github.xuwei-k" %%% "nobox" % "0.4.0"
```