BigDecimal Storage Benchmark

Efficient storage for BigDecimal in special cases

License

License

MIT
GroupId

GroupId

com.github.marschall
ArtifactId

ArtifactId

bigdecimal-storage-benchmark
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

BigDecimal Storage Benchmark
Efficient storage for BigDecimal in special cases

Download bigdecimal-storage-benchmark

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.marschall/bigdecimal-storage-benchmark/ -->
<dependency>
    <groupId>com.github.marschall</groupId>
    <artifactId>bigdecimal-storage-benchmark</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.marschall/bigdecimal-storage-benchmark/
implementation 'com.github.marschall:bigdecimal-storage-benchmark:0.1.0'
// https://jarcasting.com/artifacts/com.github.marschall/bigdecimal-storage-benchmark/
implementation ("com.github.marschall:bigdecimal-storage-benchmark:0.1.0")
'com.github.marschall:bigdecimal-storage-benchmark:jar:0.1.0'
<dependency org="com.github.marschall" name="bigdecimal-storage-benchmark" rev="0.1.0">
  <artifact name="bigdecimal-storage-benchmark" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.marschall', module='bigdecimal-storage-benchmark', version='0.1.0')
)
libraryDependencies += "com.github.marschall" % "bigdecimal-storage-benchmark" % "0.1.0"
[com.github.marschall/bigdecimal-storage-benchmark "0.1.0"]

Dependencies

provided (1)

Group / Artifact Type Version
org.openjdk.jmh : jmh-generator-annprocess jar 1.20

Project Modules

There are no modules declared in this project.

BigDecimal Storage

Efficient storage for BigDecimal in special cases.

  • a 128 bit integer can hold a scale of up to 8 (4 bits) and a 120 bit mantissa
    • commonly has a footprint of 32 bytes
  • a 96 bit integer can hold a scale of up to 8 (4 bits) and a 84 bit mantissa
    • commonly has a footprint of 24 bytes
  • conversion methods between a long and a 64bit big decimal with 6 decimal places

Versions

Version
0.1.0