Re: Byte Array Speed
From: Dmitriy Antonov (dantonov_at_netsynergy.com.NOT_FOR_SPAM)
Date: 04/29/04
- Next message: Kevin3NF: "Re: Error 3197: The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time."
- Previous message: Rob: "Re: Please help: ActiveX and Interfaces??"
- In reply to: Jim Carlock: "Re: Byte Array Speed"
- Next in thread: Duane Bozarth: "Re: Byte Array Speed"
- Reply: Duane Bozarth: "Re: Byte Array Speed"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Apr 2004 12:11:54 -0400
In this case byte array is used to retrieve information from the file and
the dump it back. I am not sure that using of Long instead of Byte could
speed up the process in this case.
But more important for me, how I could substitute Byte array with Long array
at all. Direct replacement of declarations obviously will not work. That's
why I ask you for example. In other words, how can I read information from
the file into array of Long values and then put it back into file?
Dmitriy.
"Jim Carlock" <anonymous@127.0.0.1> wrote in message
news:eHLuFHgLEHA.3216@TK2MSFTNGP12.phx.gbl...
> I noticed you were using a byte array to write the information
> to a file. 32 bit processors are supposed to be a little quicker
> when using 32 bit values rather than 8 bit values. So instead
> of using the byte array, just change it to a long array.
>
> I've been under the impression that using Longs (32-bit) for
> loop processes is quicker than using Integers (16-bit).
>
> --
> Jim Carlock
> http://www.microcosmotalk.com/
> Post replies to the newsgroup.
>
>
> "Dmitriy Antonov" <dantonov@netsynergy.com.NOT_FOR_SPAM> wrote in message
> news:uG2aqmfLEHA.1340@TK2MSFTNGP12.phx.gbl...
>
> "Jim Carlock" <anonymous@127.0.0.1> wrote in message
> news:e1iFW9aLEHA.1392@TK2MSFTNGP09.phx.gbl...
> > I'm thinking working with Longs instead of bytes would
> > end up being a little faster.
>
>
> I'm not sure I understand how it can be accomplished. Could you provide an
> example?
>
> Thank you,
> Dmitriy
>
>
>
- Next message: Kevin3NF: "Re: Error 3197: The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time."
- Previous message: Rob: "Re: Please help: ActiveX and Interfaces??"
- In reply to: Jim Carlock: "Re: Byte Array Speed"
- Next in thread: Duane Bozarth: "Re: Byte Array Speed"
- Reply: Duane Bozarth: "Re: Byte Array Speed"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|