/**
 * Useful for traversals, such as tree-walking. When using - make sure you manage dependencies nad understand the call-graph to avoid overwriting data that is used else-where
 * Using a pre-allocated continuous chunk of memory gets us better cache coherence
 * @readonly
 * @type {Uint32Array|{pointer:number}}
 */
export const SCRATCH_UINT32_TRAVERSAL_STACK = new Uint32Array(781250); // size is fairly arbitrary

/**
 * Pointer used to track current top of the stack, make sure to unwind once your traversal is done
 * Must be a positive integer
 * @type {number}
 */
SCRATCH_UINT32_TRAVERSAL_STACK.pointer = 0;
