check this out:
on a very abstract level there is everything you need in order to optimize your patches so that they consume les ram.
More concrete for me the 2 most important tricks apart from the ones mentioned already are:
1 Execution Order: Always work from left to right, up to down. upwards connection can cost you a lot, especially the red ones
2 all user interface stuff costs ram, that's dials you can twist, displays, scopes. So once you decided for fixed paramater use const i instead of the dial, and once you know everything is working delete the displays, scopes etc.
Also if you're working with a midi controller do it like this (avoids the dial = less ram usage):
The good thing about this is: Once youve reached the limit, you get aware of what you're doing and you need to learn how to use your resources wisely