hi
thank you for your reply, the problem was elsewhere... and that is the name
was String and not AnsiString. the long delay was simply because it end up
with a timeout and an error. changing the type to ansistring made it work
faster and with no error.

apaprently, typecasting is not always working as you think it is and some
typecasting warning DO require attention from the developer :)


Original Message:
-----------------
From: Markku Uttula [email protected]
Date: Sun, 22 Mar 2009 08:30:46 +0200
To: [email protected]
Subject: Re: [Synalist] GetHostByName synapse replacement


amos wrote:
> for some reason, the marked line takes a long time (3-5 seconds!)
> under D2009. with D2007 it was much faster, is there a synapse
> alternative to achieve the above without using that API?


Hint: on many occasions, GetHostByName must run a DNS-query (if it does 
not already know the address that is queried). Therefore, the speed at 
which the answer is returned depends solely on how fast the answer from 
the DNS-server can be received. Sometimes it might be a few mseconds, 
sometimes it might be minutes (unless of course you hit the timeout first).

And no, for this action there is no alternatives that are faster. Ok... 
maybe you could try caching every DNS-record in the world on your 
machine, but that is not a plausible alternative.

-- 
Markku Uttula

----------------------------------------------------------------------------
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

--------------------------------------------------------------------
mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange



------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to