Re: working with byte arrays

From: J French (erewhon_at_nowhere.uk)
Date: 11/13/04


Date: Sat, 13 Nov 2004 11:17:18 +0000 (UTC)

On Sat, 13 Nov 2004 10:31:29 +0100, "Peter" <-> wrote:

>Thanks, Rick
>I like this solution because it is simple and easy, Thanks again
>I haven't make any performance tests yet but I could think that it would be
>faster than my current solution because the whole comparisson is done inside
>InstrB(no VB loop is running).
>Thanks for the hint to check the size of the arrays, in my project all
>bytearrays start at index 0 therefore I just need to concentrate on Ubound.

One thing you will find is that when compiled (not in the IDE) VB
Loops on Byte Arrays are /astonishingly/ fast

I found this when comparing timing on my Delphi file sorting DLLs, to
my amazement using callbacks to VB was pretty much the same speed as
pure Delphi - and Delphi is often virtually unbeatable, even in ASM as
it uses an optimizing compiler.



Relevant Pages

  • FAQ: comp.lang.pascal.delphi.misc miniFAQ (full version)
    ... Why does the debugger show my For loop variable counting down, ... Does Delphi have an equivalent to the VB Split function? ... When using the TRegistry component under Windows NT, Windows 2000, or ... Newsgroups Etiquette ...
    (comp.lang.pascal.delphi.misc)
  • FAQ: comp.lang.pascal.delphi.misc miniFAQ (full version)
    ... Why does the debugger show my For loop variable counting down, ... Does Delphi have an equivalent to the VB Split function? ... When using the TRegistry component under Windows NT, Windows 2000, or ... Newsgroups Etiquette ...
    (comp.lang.pascal.delphi.misc)
  • FAQ: comp.lang.pascal.delphi.misc miniFAQ (full version)
    ... Why does the debugger show my For loop variable counting down, ... Does Delphi have an equivalent to the VB Split function? ... When using the TRegistry component under Windows NT, Windows 2000, or ... Newsgroups Etiquette ...
    (alt.comp.lang.borland-delphi)
  • FAQ: comp.lang.pascal.delphi.misc miniFAQ (full version)
    ... Why does the debugger show my For loop variable counting down, ... Does Delphi have an equivalent to the VB Split function? ... When using the TRegistry component under Windows NT, Windows 2000, or ... Newsgroups Etiquette ...
    (comp.lang.pascal.delphi.misc)
  • FAQ: comp.lang.pascal.delphi.misc miniFAQ (full version)
    ... Why does the debugger show my For loop variable counting down, ... Does Delphi have an equivalent to the VB Split function? ... When using the TRegistry component under Windows NT, Windows 2000, or ... Newsgroups Etiquette ...
    (comp.lang.pascal.delphi.misc)

Loading