Re: String Functions
- From: "Pierre le Riche" <pleriche@xxxxxxxxxxx>
- Date: Sat, 30 Apr 2005 22:03:10 +0200
Hi John,
Two problems with your benchmark:
(1) No negative numbers, so some of the branches in your function gets
perfectly predicted.
(2) You don't reset the result string back to '' before calling IntToStrXXX.
My function always allocates the full 11 bytes, so if you don't reset it
before calling yours, your SetLength is essentially free - skewing the
results.
Regards,
Pierre
.
- Follow-Ups:
- Re: String Functions
- From: John Herbster
- Re: String Functions
- References:
- String Functions
- From: Chekcin
- Re: String Functions
- From: Dennis
- Re: String Functions
- From: Florent Ouchet
- Re: String Functions
- From: John Herbster
- Re: String Functions
- From: Pierre le Riche
- Re: String Functions
- From: John Herbster
- String Functions
- Prev by Date: Re: String Functions
- Next by Date: Re: String Functions
- Previous by thread: Re: String Functions
- Next by thread: Re: String Functions
- Index(es):
Relevant Pages
|