[Tutor] lists, name semantics
Laura Creighton
lac at openend.se
Mon Apr 20 00:56:42 CEST 2015
In a message of Sun, 19 Apr 2015 17:23:13 -0500, boB Stepp writes:
>The last sentence in this paragraph has me intrigued. Why would an
>object, once it has been created, be moved? What practical benefit
>does doing this give?
>
boB
If you have more than enough memory in your system, you never do
this because there is never any need. But if you would like to
lay down an array of x by y for the fastest access, you would like
it to fit perfectly in memory. Which can mean that the best you
can do is pick up a bunch of smaller objects, move them someplace
(anyplace) else, and then let your bigger object fit in memory
in contiguous space.
See 'garbage collection' for more useful ideas.
Laura
More information about the Tutor
mailing list