[Development] QUdpSocket writeDatagram performace on ARM

Thiago Macieira thiago.macieira at intel.com
Thu Oct 9 17:27:46 CEST 2014

On Thursday 09 October 2014 13:36:27 Tom Hirst wrote:
> I've come across the problem described in QTBUG-37092 and have tracked it
> down to the fact that writeDatagram ends up calling if_nametoindex with an
> empty interface name, for some reason on ARM platforms this call takes
> around 30ms to complete. I would suggest avoiding this call if the
> interface name (from the IPv6 scopeid) is empty - because it will just
> return 0 anyway, I don't see any value on making this call on non-ARM
> platforms either. Patch attached to the bug report and duplicated here.  
> For what it is worth, this problem won't occur on Android ARM platforms, as
> they don't have the call to if_nametoindex.
> Is this the correct approach to be taking?

The approach looks right, thank you.

Can you upload it to codereview.qt-project.org
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Development mailing list