Skip to content

Small performance fixes for usage in high-load situations#4

Open
Unispezi wants to merge 1 commit into
edazdarevic:masterfrom
Unispezi:multiple_small_performance_fixes
Open

Small performance fixes for usage in high-load situations#4
Unispezi wants to merge 1 commit into
edazdarevic:masterfrom
Unispezi:multiple_small_performance_fixes

Conversation

@Unispezi

@Unispezi Unispezi commented Oct 1, 2018

Copy link
Copy Markdown
  • bigInts now held in fields to reduce number of short-lived objects created by isInRange()
  • unused field this.cidr removed
  • new isInRange(InetAddress) so you can avoid string parsing if you already have an InetAddress
  • early return in isInRange() to reduce number of comparison for out-of-range addresses

- bigInts now held in fields to reduce number of short-lived objects created by isInRange()
- unused field this.cidr removed
- new isInRange(InetAddress) so you can avoid string parsing if you already have an InetAddress
- early return in isInRange() to reduce number of comparison for out-of-range addresses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant