and the code I have written for it is very slow.
Doesn't look that way to me :)
In reply to Re: Code Optimization by Anonymous Monk in thread Code Optimization by azheid