Sample MEL file and binaries (Zip)
Just the MEL file (txt)
I've included a link to a zip file containing the loading portion of my MEL script responsible for loading the path nodes into Maya. (I left out the UI, the saving, the editing tools, etc.) Note that the path nodes aren't meant to be saved in a scene. Rather this is part of a path node editing system and the nodes would be saved out to a binary file. To load a binary, first edit line 16 in the MEL file and change the path to the binary to load, then just copy and paste the entire script into Maya.
I tried commenting out the code that actually creates the node objects (and the conneciton objects) and the expansion of memory is much much slower ... about +1 MB per run. So the memory expansion definitely has to do with the creation of the new objects in the Maya scene. My nodes are simple pyramid shapes with 5 verts. My connections between nodes are equally simple 6 vertex extruded triangles. When a node is created in the world, it duplicates the master node and moves it to position. When a connection is loaded, it duplicates the master connection and stretches it into place to fit between the nodes its connecting.
I included two binary files in the zip file which contain path node and connection data. If you load the smaller binary file, Maya should only bloat up to < 2GB I believe. If you load the larger one, it will go up to around 9GB.