|
-
Nov 28th, 1999, 03:28 AM
#1
Thread Starter
Member
I wrote a program a long time ago that'll compare two different pieces of code. Lately, i just found out about the VB Replace function, all along i've been using a custom-made one. And to my surprise, i ran the test several times, my function is about 2-3x faster than the VB function! ***? I would paste the code but i since deleted my function thinking the VB version would be faster.
------------------
-Mystiq
-
Nov 28th, 1999, 04:07 AM
#2
Hyperactive Member
c'est la vie, n'est pas?
you wrote it once, so you could probably rewrite it without too much difficulty. That's really kind of funny.
-
Nov 28th, 1999, 04:09 AM
#3
Thread Starter
Member
The funny part is that my version was faster. The sad part is that i could probably rewrite, and make it faster (which i'll do when i feel like it, hehe).
------------------
-Mystiq
-
Nov 28th, 1999, 03:29 PM
#4
Hyperactive Member
Why your code is faster? Ask the M$ ppl for the source of the Replace function as implemented in VB. Build-in functions are handy, but not always faster then you're own code (this might depend too on compiler options, like integer overflow checks)
-
Nov 28th, 1999, 09:09 PM
#5
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|