Skip to content

JasonGiedymin/Snohetta

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 

Snohetta

Faster Scala BigInteger.

Developed during my personal research with projects that required faster math libraries but that used Scala. In particular computing extremely large numbers.

Usage

See tests on how to use this code.

Building and Testing

git clone git@github.com:JasonGiedymin/Snohetta.git
sbt compile
sbt test

Status

JVM Cold:

[info]   + Scala BigInt: 5620 ms
[info]   + Scala BigInt2: 2173 ms
[info]   + BigInt2 Parallel: 648 ms

JVM Warmed:

[info]   + Scala BigInt: 5510 ms
[info]   + Scala BigInt2: 1831 ms
[info]   + BigInt2 Parallel: 561 ms
[info] Loading project definition from /Users/jason/programming/github/Snohetta/project
[info] Set current project to Snohetta (in build file:/Users/jason/programming/github/Snohetta/)
[info] Compiling 1 Scala source to /Users/jason/programming/github/Snohetta/target/scala-2.10/test-classes...
[info] BasicSpec:
[info] BigInt2
[info]   must be able to add
[info]   - small Integers
[info]   - large Integers
[info]   must be able to subtract
[info]   - small Integers
[info]   - large Integers
[info]   must be able to multiply
[info]   - small Integers
[info]   - large Integers
[info]   must be able to divide
[info]   - small Integers
[info]   - large Integers
[info]   must be faster than BigInt
[info]   + Scala  BigInt: 5620 ms
[info]   + Scala BigInt2: 2173 ms
[info]   + BigInt2 Parallel: 648 ms

About

Faster BigInteger for Scala & Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published