Skip to content

Commit

Permalink
Optimizations in NetUtil
Browse files Browse the repository at this point in the history
Motivation:

IPv4/6 validation methods use allocations, which can be avoided.
IPv4 parse method use StringTokenizer.

Modifications:

Rewriting IPv4/6 validation methods to avoid allocations.
Rewriting IPv4 parse method without use StringTokenizer.

Result:

IPv4/6 validation and IPv4 parsing faster up to 2-10x.
  • Loading branch information
fenik17 authored and Scottmitch committed May 18, 2017
1 parent 0f1a2ca commit e453191
Show file tree
Hide file tree
Showing 5 changed files with 498 additions and 231 deletions.
Loading

0 comments on commit e453191

Please sign in to comment.