
One of the ways to reduce the memory being consumed is optimization of data structures we have told you about in Lesson 23.Īnother way of saving memory is to use more saving data types. The operation of transferring data between the memory and microprocessor (cache) is not very cheap. Although the 64-bit program code is faster, extraction of larger data amounts from memory might cancel all the advantages and even reduce performance. So it is unreasonable to strike against the growth of memory consumption we have described - it is easier to add just a bit more memory.īut there is a disadvantage of this growth. In relative units, it means that the program takes three times less memory available on a 64-bit system. It is quite okay if a program takes 300 Mbytes on a 32-bit system with 2 Gbytes of memory and 400 Mbytes on a 64-bit system with 8 Gbytes of memory. We can often tolerate the growth of main memory consumption - the advantage of 64-bit systems is that very large amount of memory available to user.

Reducing amounts of memory being consumed

Reducing amounts of memory being consumed.
