cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: IDN support using native win32 APIs

From: Jamie Lokier <jamie_at_shareable.org>
Date: Fri, 22 Apr 2011 11:44:54 +0100

Pierre Joye wrote:
> > What would you think about a dynamic import of these functions, and if that
> > fails then continue without IDN support? This would have the benefit that
> > binaries compiled with this feature would work too on platforms which lack
> > IDN support.
>
> We could use the LoadLibrary to detect if normaliz.dll is installed,
> load it and call the desired functions. However I fear a little bit
> the performance impact here. As host resolution can be a bottleneck,
> especially when an app is doing a lot of different requests. Maybe we
> can do it for the mingw builds only?

Is it not possible to LoadLibrary just once and remember the symbol
resolution?

-- Jamie
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-04-22