4 ms·
It may be, but perhaps there is some performance concern? I’m not familiar with this domain and application so it’s not clear to me whether the decisions made a
by appplication 2y ago
It may be, but perhaps there is some performance concern? I’m not familiar with this domain and application so it’s not clear to me whether the decisions made are sensible just from reading the code.
- piva00 2y agoIt's testing using regex, which is much less performant than converting an IP address to some numeric representation and running comparisons on that.
- lelanthran 2y ago> It may be, but perhaps there is some performance concern? I'm skeptical of that concern: executing multiple regular expression matches on a string is never going to be faster than parsing the entire string once, into a 4-octet structure, and then performing integer comparisons on the octets.