Re: String Functions



> That was deliberate, in order to mimic ordinary (at least
> in my experience) usage of the IntToStr function. That
> is also why I ran IntToStrPLR1, then IntToStr_JH1, then
> IntToStrPLR1, then IntToStr_JH1 -- just to check on the
> effects of string "reuse".

If you do that then you cannot use the results to compare the two functions.
For a benchmark to be valid the input has to be the same for all
contestants. If you reuse the output of one function as the input to
another, then that is not the case.

Remember:

function xyz: string;

is for all practical purposes the same as:

procedure xyz(var Result: string);

Regards,
Pierre


.



Relevant Pages

  • Re: SMTPClient Authentication problems
    ... You can download the code and reuse the library ... ... public void SendMail(string fromAddress, string toAddress, string subject, ... string body, string Password) ... SmtpClient smtp = new SmtpClient; ...
    (microsoft.public.dotnet.general)
  • Re: DllImport
    ... I think the final square bracket is a typo. ... since it makes the code harder to maintain. ... In my exp saying the same thing twice makes the code harder to reuse, ... public static extern string CallMe (string Name, ...
    (microsoft.public.cert.exam.mcad)
  • Re: Fastcode AnsiStringReplace B&V 0.4
    ... > challenges, the RTL replacement and procedure equivalent, such as ... > parameter and return a string result, ... The AnsiStringReplace challenge allows reuse of functions such as UpperCase, ... fast functions for the Delphi community ) and MakeUpperCase, ...
    (borland.public.delphi.language.basm)
  • Re: Why is lambda allowed as a key in a dict?
    ... is the same an an existing string does not necessarily result in reuse of the existing string but mey result in creation of a new, ... On the other hand, identifiers are almost always reused, often multiple times.. ... Similarly, if one is populating a LARGE structure with duplicate values, it may be worthwhile to cache values that are not cached by the interpreter. ...
    (comp.lang.python)
  • Re: Infos about components and code reuse
    ... class like 'String' gets reused all the time. ... Folks think they need ... "the use of a component-based methodology to ensure that component reuse ... is a standard part of the software development process. ...
    (comp.object)