This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / System Interface / Memory Usage /

Share

FilledSmallSquare Share[expr] changes the way expr is stored internally, to try and minimize the amount of memory used.

FilledSmallSquare Share[ ] tries to minimize the memory used to store all expressions.

FilledSmallSquare Share works by sharing the storage of common subexpressions between different parts of an expression, or different expressions.

FilledSmallSquare Using Share will never affect the results you get from Mathematica. It may, however, reduce the amount of memory used, and in many cases also the amount of time taken.

FilledSmallSquare See Section 2.14.4.

FilledSmallSquare See also: MemoryInUse, ByteCount.

FilledSmallSquare Related package: Utilities`MemoryConserve`.

FilledSmallSquare New in Version 1.

Further Examples