10-27-2003, 08:28 AM
Ok, here's the deal.
I have an object instance attribute array. It's an integer array.
I have a further object attribute array, also an integer array.
The second array shows the start and end positions of each object instance:
So the attribute list for object 1 is:
1 6 2 9 3
BUT, to make my system more flexible, I want to be able to use individual bits. (also the same for similar array pairs) The objectInstanceSequence.end() array will use bits, not integer arrays. The objectInstanceSequence() array will be the same.
I was worried before that using individual bits slows down the access time, but do you think it's really significant compared to space savings? And if you use more memory, aren't you using more time to access parts of memory to get where you want to be? So is this a good or bad idea, and why?
I have an object instance attribute array. It's an integer array.
I have a further object attribute array, also an integer array.
The second array shows the start and end positions of each object instance:
Code:
objectInstanceSequence(1) = 1
objectInstanceSequence(2) = 6
objectInstanceSequence(3) = 2
objectInstanceSequence(4) = 9
objectInstanceSequence(5) = 3
objectInstanceSequence.end(0) = 0
objectInstanceSequence.end(1) = 5
So the attribute list for object 1 is:
1 6 2 9 3
BUT, to make my system more flexible, I want to be able to use individual bits. (also the same for similar array pairs) The objectInstanceSequence.end() array will use bits, not integer arrays. The objectInstanceSequence() array will be the same.
I was worried before that using individual bits slows down the access time, but do you think it's really significant compared to space savings? And if you use more memory, aren't you using more time to access parts of memory to get where you want to be? So is this a good or bad idea, and why?
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Visit www.neobasic.net to see rubbish in all its finest.