So I'm making changes to my Expression Manipulator program to allow more operators than the basic 4 and exponentiation. It basically uses a function that does a search and replace. ie:
3+4^5
becomes
add(3,expt(4,5))
The problem is that when deleting things in parentheses, after 5 of them, the program becomes horribly slow:
(((x/y)/z)/a)/b -- around 2 seconds. another layer of parentheses makes it 6 seconds
Is string manipulation really that time consuming? Or is it probably another piece of my program?