clsConcat sub Add optional parameters #482
Replies: 2 comments 10 replies
-
I'm not sure that it's "inefficient" per-se overall. You could check this by using I'm betting it's totally inconsequential. From my own use of So, to sum up, it might not be the "best" way, but it allows you to build complex strings very easily, does it super quickly (even with inefficiencies), and doesn't require me to build a specialized concatenation tool, any one of those is a win in my book, with all the upsides, it's a no-brainer, and trying to spend time optimizing something that's already fast when I have tons of other things I'd get more mileage out of, it doesn't even nudge the meter. |
Beta Was this translation helpful? Give feedback.
-
I wonder if using |
Beta Was this translation helpful? Give feedback.
-
Just check out clsConcat.cls clsConcat.Add() with the numerous optional parameters. Is that efficient? Regardless of how many optional parameters passed, I think it's always passing 10 addresses. eg Add "A","B", "C", "D" four pointers referring to strings and 6 null pointers. Which might explain comparing against .Net String Concat member they have overloads for one to four parameters for efficiency reasons.
Beta Was this translation helpful? Give feedback.
All reactions