For context I’m currently using 16GB RAM, Intel(R) Core™ i7-10750H CPU @ 2.60GHz. My dynamo always lags when I ran even a slightly complex dynamo graph. Should I try increasing the RAM? If yes, to 32GB or 64GB?
The RAM consumption is likely triggered first by Revit, not Dynamo. If you expand Revit down you’ll likely expose a bit more info around what it using that memory.
Revit recommends 20x the file size to open a file, so if your file size is 500mb you need 10,000 mb or 10gb of RAM to start with. If it’s got a link in it which is another 500mb that’s another 10gb, and so on. Both Dynamo and Revit are pretty good at utilizing a scratch disc, so it’s not as clean cut as this, but it’s a good indication of what the issue is.
Another thing to note, ‘slightly complex’ in terms of Dynamo graphs is a VERY loaded term. As an example a graph which selects a family instance, draws a vertical line from it’s location point, and intersects that with the geometry of a terrain only has 7 or 8 nodes and looks simple… but it uses a TON of memory to transfer the terrain to a mesh, and then again to a polysurface so you can intersect it with a line.
Reducing the amount of objects you work with by filtering quickly, simplifying and reducing object conversions (converting Revit elements to Dynamo elements and back again), and writing code to be performant can usually get you by.
