Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months ago
JSON representation
immutable primitive array/NonEmptyArray wrapper for Scala
- Host: GitHub
- URL: https://github.com/xuwei-k/nobox
- Owner: xuwei-k
- License: mit
- Created: 2013-10-24T10:30:01.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-05-06T21:58:50.000Z (8 months ago)
- Last Synced: 2024-05-06T22:43:18.751Z (8 months ago)
- Topics: data-structures, primitive-arrays, scala, scala-js, scala-native
- Language: Scala
- Homepage:
- Size: 361 KB
- Stars: 33
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-scala-native - nobox - Immutable primitive array wrapper without boxing. (Functional Programming)
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"
```