personnummer / java

Validate Swedish personal identity numbers
MIT License
8 stars 6 forks source link

Branchless luhn-algorithm #93

Closed ullenius closed 1 year ago

ullenius commented 1 year ago

Type of change

Description

Branchless luhn-algorithm

Increase use of primitives

Related issue

Motivation

Improved performance for luhn-algorithm.

Reduced memory usage (no longer creates unecessary Integer objects that are immediately auto-unboxed into primitive ints).

Checklist