|
Память под массив
|
|||
---|---|---|---|
#18+
Здравствуйте, скажите пожалуйста, что лучше в отношении использования меньшего объёма памяти - объявить 6 массивов по 2 элемента или один размером (2Х6)? ... |
|||
:
Нравится:
Не нравится:
|
|||
08.10.2003, 09:46 |
|
Память под массив
|
|||
---|---|---|---|
#18+
Arrays of any data type require 20 bytes of memory plus 4 bytes for each array dimension plus the number of bytes occupied by the data itself. The memory occupied by the data can be calculated by multiplying the number of data elements by the size of each element. For example, the data in a single-dimension array consisting of 4 Integer data elements of 2 bytes each occupies 8 bytes. The 8 bytes required for the data plus the 24 bytes of overhead brings the total memory requirement for the array to 32 bytes. A Variant containing an array requires 12 bytes more than the array alone. ... |
|||
:
Нравится:
Не нравится:
|
|||
08.10.2003, 12:19 |
|
|
start [/forum/topic.php?fid=60&msg=32287074&tid=2170629]: |
0ms |
get settings: |
10ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
50ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
49ms |
get tp. blocked users: |
2ms |
others: | 316ms |
total: | 465ms |
0 / 0 |