Skip to content

Comments

avoid call NetworkInterface.getByInetAddress in getHardwareAddress#214

Open
auxor wants to merge 1 commit into4thline:masterfrom
auxor:master
Open

avoid call NetworkInterface.getByInetAddress in getHardwareAddress#214
auxor wants to merge 1 commit into4thline:masterfrom
auxor:master

Conversation

@auxor
Copy link

@auxor auxor commented Nov 24, 2017

getHardwareAddress will be called frequently.
And in Android platform, it will call getNetworkInterfacesList,
and small array objects are created which will casue GC.

getHardwareAddress will be called frequently.
And in Android platform, it will call getNetworkInterfacesList,
and small array objects are created which will casue GC.
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