jchambers / fast-uuid

A Java library for quickly and efficiently parsing and writing UUIDs
MIT License
162 stars 18 forks source link

Look up hex values in an array instead calculating them repeatedly #4

Closed jchambers closed 6 years ago

jchambers commented 6 years ago

This implements almost exactly the same approach as #3, but includes a little more error checking. In benchmarks, this approach is about 5% slower than @agrison's, but it's still roughly a 4x improvement over master (which was itself a 4x improvement over the stock implementation).