Closed KamilZm closed 3 years ago
@KamilZm Thank you for your contribution! 👍
I'll merge this pull request.
By the way, these changes are also safe for the case that rewriting the public setter properties of Begin
and End
?
see also: https://github.com/jsakamoto/ipaddressrange/issues/68
@jsakamoto Thank you, good point, you are right. I have fixed it.
PS: I'm sorry for my English
@KamilZm Thank you for your effort!
I'll merge this pull request as soon as possible, and I'll publish a new version of this package. Thanks again!
P.S.
I'm sorry for my English
Don't mind! I'm also a not-native English speaker. 😄
@KamilZm
I merged your pull request just now, and I published the new version of this package! 🎉
Again, thank you for your contribution! 👍
GetPrefixLength() is very expensive method. If you call it many times (I have to +-1000000 calls), it will take a very long time. I store prefix lenght to private property _prefixLenght in order to optimise multiple calls GetPrefixLength().
Number of calls: 1000000 Without optimalisation 14635 ms With optimalisation: 4 ms