komamitsu / fast-uuid-parser

A UUID string parser that is 4 times faster than java.util.UUID.fromString()

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fast-UUID-Parser

Coverage Status

A UUID string parser that is 5.5 times faster than java.util.UUID.fromString().

Benchmark                            Mode  Cnt      Score    Error   Units
FastUuidParserBenchmark.fromString  thrpt   20  13001.895 ± 12.659  ops/ms
NormalUUIDBenchmark.fromString      thrpt   20   2363.129 ± 31.584  ops/ms

Usage

You can use FastUuidParser.fromString() like java.util.UUID.fromString().

UUID uuid = FastUuidParser.fromString("81c578f9-5e6d-4d78-8729-f32acefc144b");

About

A UUID string parser that is 4 times faster than java.util.UUID.fromString()

License:Apache License 2.0


Languages

Language:Java 100.0%