Rebar creation performance and memory usage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all, I am creating a box girder bridge. The box girder is about 50 meters long and has a bit complex geometry shape which I created using DirectShape. I need to create about 2000 rebars for the girder. The problem is that if I use the 50 meters long girder as the host element for the rebars, the creation time is very long (about 45 minutes), and the memory (RAM) used is about 31 GB which is very close to hardware RAM limit of my computer (32 GB), and often Revit just crashes. If I use a small part of the girder (1 meter long) as the host element, the rebar creation time is about only 5 minutes and the RAM used is about 11 GB. However, a lot of longitudinal rebars span about 50 meters, and I can not divide them into small segements.
Even when I use 1 meter girder as the host element, if I add 2000 more rebars, the total creation time (for 4000 rebars) becomes 35 minutes and the RAM usage is about 13 GB. My code creates all these rebars in a loop. I output the creation time of each rebar to a text file and found that the creation time becomes longer and longer for similar rebars as the loop goes on.
Please give me some suggestions. Is this related to the garbage collection? Do I have to manually do the garbage collection in my code?