Repeat same script in smaller chunks

  1. Ensure no bindings are slowing things down; more info on that here: Element Binding in Revit.

  2. Ensure you’re only ‘going to the well once’ so to speak. Each time you send/receive data to/from Revit you take a speed hit; doubly so when your data set is larger than your memory can handle.

  3. Reduce the number of items in memory by processing things more effectively; n items in 2 nodes has different impact on performance than 2*n items laced in on node.

  4. Compact a few nodes into custom nodes or a single ‘in-line’ design script statement (reducing the data which has to be pushed into memory)

  5. Utilize dictionaries instead of lists. This will require a good amount of rework via Design script, but can significantly decrease memory consumption as it’s one item of significant size instead of n items a small size which is easier for modern computers to work with.

3 Likes