Re: String Functions



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


.



Relevant Pages

  • Re: Can I reset a password or remove a username?
    ... it appears I must know the password answer to reset the ... passwordAnswer As String _ ... If you, as an admin, need to do this, Code against the Membership ... One gotcha. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Can I reset a password or remove a username?
    ... passwordAnswer As String _ ... "Gregory A. Beamer" wrote in message ... I will have to peruse my code base and find a sample, as I have already created a fairly simple admin page to reset a user's password. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: copying objects
    ... > (commit and reset) into another method named Clone(). ... > currVal and newVal will be simple types (ie. long, string, date...) though ...
    (microsoft.public.dotnet.languages.csharp)
  • New system hangs
    ... but when I try to do more, such as starting a game or a 3D-mark benchmark ... the system freezes after a while (seconds for the game and 10-15 frames for ... The computer doesn't reset, but locks with the same frame on ...
    (alt.comp.hardware.pc-homebuilt)
  • Re: Iterate through the class properties
    ... Public Overloads Sub UndoChange(ByVal PropertyName As String) ... and have it reset the property to the previous value. ... dim drProperty as DataRow = propertyChanges.Rows.Find ... apply the reflection methods to obtain the properties. ...
    (microsoft.public.dotnet.languages.vb)