Recursive library block calls - Slow compile times

I've created a custom library block which has a mask that allows the block to recursively call itself to create multiple sub instantiations of that system and connect them internally. I have done all the optimization that I can possibly think of and still have a compile time of ~5min(Used to be 12min). NOTE: This custom library block that gets recursively called has other blocks inside that also have masks to custom draw the subsystems based on parameter inputs, but not with additional recursion.
I've created a simplified test recursion block that contains a subsystem with a single delay block and I recursively call this delay block for a specific "N" number of delays, ultimately getting "N" layered sub-systems each containing a single delay to acheive the total "N" delays specified. This example is also extremely slow to compile, taking ~XXXX minutes with N = 15. Are there any other recommended approaches to the style of system that I'm trying to design or some performance optimization techniques to implement?
Thanks in advance for your help.

Answers (0)

Categories

Products

Release

R2019a

Asked:

on 16 Jul 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!