Re: Faster way of making long string?
- From: erewhon@xxxxxxxxxx (J French)
- Date: Tue, 26 Apr 2005 21:57:09 +0000 (UTC)
On Tue, 26 Apr 2005 21:56:46 +0200, Ekkehard Domning <edo@xxxxxxxx>
wrote:
<snip>
>I made a test with this and Str() is much faster than IntToStr. This was
>surprising for me.
If you have a Pro or Enterprise edition then right click on IntToStr(
then select 'Find Declaration'
It will send you on a right old chase through SysUtils.pas
Doing the same on Str( just opens System.pas
- no source - some sort of compiler magic
Quite interesting
Mostly - I think the speed is down to not creating new strings
- but the FormatBuf code is ... not exactly to the point
It would be handy if Delphi provided some sort of Strings Created
statistic for profiling
.
- Follow-Ups:
- Re: Faster way of making long string?
- From: Chris Willig
- Re: Faster way of making long string?
- References:
- Faster way of making long string?
- From: Ian Hinson
- Re: Faster way of making long string?
- From: Ekkehard Domning
- Re: Faster way of making long string?
- From: J French
- Re: Faster way of making long string?
- From: Ekkehard Domning
- Re: Faster way of making long string?
- From: J French
- Re: Faster way of making long string?
- From: Ekkehard Domning
- Re: Faster way of making long string?
- From: J French
- Re: Faster way of making long string?
- From: Ekkehard Domning
- Faster way of making long string?
- Prev by Date: Re: Faster way of making long string?
- Next by Date: Re: Faster way of making long string?
- Previous by thread: Re: Faster way of making long string?
- Next by thread: Re: Faster way of making long string?
- Index(es):
Relevant Pages
|