|
-
Apr 15th, 2000, 02:34 AM
#1
Thread Starter
Registered User
Hello all of you out there....
I have a file, lets say it has a size of 1MB
I need to encode each byte of the file!
If I use a loop from 1 to FileSize , It is damn slow!
I dont want the Processing-Time function to be linear like O(n).
But when I read everytime 2048 bytes into buffer declared as String * 2048, I need now to make everytime a loop running from 1 to 2048, so I get the same time problem.
You know what I mean, Lets say the file size is 10K,
So if I run a loop from 1 to 10240, its just the same to run 5 times a loop from 1 to 2K.
Any Ideas For Improving The Processing-Time?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|