Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Simple question. Array vs Memblock for speed

Author
Message
Sleet
21
Years of Service
User Offline
Joined: 3rd Aug 2003
Location:
Posted: 6th Aug 2004 15:27
I'm figuring that creating an array creates one on the hard drive and a memblock is exactly that, a block of memory (ram) so it would make sens to me that reading/writing information to/from a memblock would increase the efficiency of anyhting that I happened to be coding.

Does anyone have any insight onto this subject, theoretical knowledge, personal experience, etc.
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 6th Aug 2004 19:40
An array is still done in the memory (ram), so I guess the speed should match up equally.

Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 8th Aug 2004 03:28
arrays are in memory.
pretty much everything you do will be in memory except for reading/writing files from the harddrive.

"eureka" - Archimedes

Login to post a reply

Server time is: 2025-05-25 21:14:03
Your offset time is: 2025-05-25 21:14:03