Split is one of the most appallingly slow functions in the whole .net library.
If you are really interested in optimisation, learn how to use pointers and develop a custom algorithm to suit your exact requirement for this task. It will be much more efficient and won't double your memory usage (like Split will).




Reply With Quote