From: Kem Tekinay <[EMAIL PROTECTED]>
Date: Fri, 29 Dec 2006 01:49:09 -0500
On 12/28/06 11:14 PM, John McKernon at [EMAIL PROTECTED]
wrote:
However, I have a sort function that does a fairly complicated
multi-level
shell sort on my data, with lots of extracting bytes from integers
and then
comparing the bytes. The RB version of the entire sort takes 18
seconds to
run, where the VB and FB versions take about a second. The actual
data
itself isn't being moved, just index pointers to it. There is very
little
string comparing going on, and no variants. But yes, there is a
whole lot of
data zipping back and forth in memory.
You'd be amazed at how many times the question of RB's speed comes
up in
these lists, and how often it turns out that there is a way to
write the
code so that will not only be as fast as the rivals, it will often be
faster.
RB has pretty good speed for most things, in my experience. RB even
has pointers these days which was the biggest lack of speed.
Although I think pointers are still not being used properly, because
RB doesn't have a "unsafe" keyword like C# has. I think pointers
should only be used in "unsafe" sections.
There's always areas for improvement, though ;)
--
http://elfdata.com/plugin/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>