Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Jan 26, 2006
Messages
1
Location
DE
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

Back
Top