NODES

Synopsis
NODES
Description

Outputs a list of two numbers. The first is the number of nodes of memory currently in use. The second is the maximum number of nodes that have been in use at any time since the last invocation of NODES.

A node is a small block of computer memory used by Logo. Each number uses one node. Each non-numeric word uses one node, plus some non-node memory for the characters in the word. Each array takes one node, plus some non-node memory, as well as the memory required by its members. Each list requires one node per member, as well as the memory within the members.

NODES is useful it you want to ensure that your program isn't inadvertantly keeping references on a large number of NODEs that would cause FMSLogo's memory usage to grow and grow.

Example
; See what the current node usage is.
SHOW NODES
[5559 5582]

; Make a variable that uses a lot of nodes.
MAKE "biglist ISEQ 1 100000
SHOW NODES
[206102 1506144]

; Erase the variable to free the nodes.
ERN "biglist
SHOW NODES
[6267 206283]

SourceForge.net Logo