Genii Weblog


Civility in critiquing the ideas of others is no vice. Rudeness in defending your own ideas is no virtue.


Tue 8 Feb 2005, 11:45 AM
Thomas Gumz brings up a point in a post on the Notes 6 Gold forum about the inefficiency of using an ampersand ("&") to concatenate strings:
...by all means don't concatenate all your strings via "&" (because this is slow and inefficient).

Use "+" instead.

BAD :strBody = strBody & "Fax " & conFaxNumber
GOOD: strBody = strBody + "Fax " + conFaxNumber

If conFaxNumber isn't a string, then use this:
strBody = strBody + "Fax " + Cstr(conFaxNumber)

Thomas - IBM
Now, I am a bit of an efficiency nut, but while I have heard this before, I continue to use ampersand a lot.  How much slower do you think it really is?  Anybody have experience with this?  Should I go rewrite the places that use ampersands to use plus signs instead?  Or is this too small to matter on today's modern systems, and should I just remember it going forward?

Copyright © 2005 Genii Software Ltd.

Tue 8 Feb 2005, 07:03 AM
Inline JPEG image

If you haven't tried Google Maps, it is another very cool addition (made possible by the acquisition of KeyholeCorp's mapping technology).  And what about those restaurants near Shaker?

Inline JPEG image

Copyright © 2005 Genii Software Ltd.