Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

very slow 3d array access

Status
Not open for further replies.

codeguru

Computer
Jan 26, 2006
1
Hi!
just a simple question:
I have a 3d array in signed shorts in the dimensions 640x480x64, that should consume memory below 100 MB.

Then I start to index x and y in two for loops and get an 1-dimensional array of 64 elements.

The question is why the performance is slow? it needs 4 hours just to access all data!

My system: P4, 2.4 GHz, 1 GB RAM, XP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor