Performance of NetworkInterface methods on Windows
Daniel Fuchs
daniel.fuchs at oracle.com
Wed Feb 8 12:44:04 UTC 2023
Hi Richard,
On 07/02/2023 21:04, DiCroce, Richard wrote:
> Hi Daniel,
> I'm not proposing to add any caching, or change anything about the Java side of NetworkInterface, for exactly the reasons you state. This first patch is purely a change to the native code to make it so that getAll only calls the Windows API once instead of N + 1 times.
Oh, OK - good to hear. That sounds interesting then, sorry for assuming!
:-)
> createNetworkInterface actually already had parameters for passing the previously fetched list of interfaces. getAll just doesn't currently do that.
>
> This would probably be easier to discuss if you could actually see the changes I'm proposing. Should I attach a patch to an email, or is there a better way of doing that?
Jaikiran replied with a good suggestion for that. But please take into
account Daniel Jelinski's comments first.
best regards,
-- daniel
>
> Thanks,
>
> Rich DiCroce
More information about the net-dev
mailing list