This seems to have helped some, but I was thinking that I may be able to side step the more cpu vs more ram issue by using inline c.
However, I cannot seem to find a good ref for inline c, such as what happens to refs; or I could stop storing so much if my recursive calls ran fairly quickly, but when I pass my class to c++, does it keep the same methods, ect.