Mathematica 9 is now available

Wolfram Library Archive


Courseware Demos MathSource Technical Notes
All Collections Articles Books Conference Proceedings
Title

Packed Arrays: An Efficient Internal Storage Format in Mathematica 4
Author

Rob Knapp
Organization: Wolfram Research, Inc.
Department: Kernel Technology
Journal / Anthology

The Mathematica Journal
Year: 2000
Volume: 7
Issue: 4
Page range: 542-558
Description

While packed arrays may sound quite mysterious and deep, the idea is really quite simple. When it is clearly appropriate to represent a list of a single type machine numbers (integer, real, or complex) internally as an array, Mathematica does so. The basic technology is actually there in Mathematica 3.0, and is visible in the List operations that were added to the compiler. Basically what has been done for Mathematica 4 is to extend this representation to kernel functions where it is appropriate. The internal representation is essentially invisible to you as a user (you have to use functions in the Developer` context to even see it) so you do not have to worry about it. However, understanding the packed array representation can help you write faster, more memory-efficient code.
Subject

*Mathematica Technology > Kernel > Data Structures
Related items

*Packed Arrays: An Efficient Internal Storage Format in Mathematica 4   [in Technical Notes]
URL

http://www.mathematica-journal.com/issue/v7i4/features/knapp/