Lua Optimizing
Posted: Thu Aug 28, 2014 8:27 pm
Alright, I'd like to make this post as good for me as for everyone else to learn optimizing techniques.
So I'd like to get some user advice after reading a couple manuals.
Out of everything that's terribly unoptimized in my code, I'm going to choose the shunting yard algorithm and reverse polish notation calculator I put together. It's quite inefficient, my string library calculator is faster than it. But any tips you'd like to throw out on this babeh, go ahead! As well if you just want to make a post about optimizing that doesn't relate to the shuntingyard/reversepolishcalculator then go ahead (you may have to give examples for me to understand).
*I decided to make this algorithm when Roland_Yonaba suggested it*
So I'd like to get some user advice after reading a couple manuals.
Out of everything that's terribly unoptimized in my code, I'm going to choose the shunting yard algorithm and reverse polish notation calculator I put together. It's quite inefficient, my string library calculator is faster than it. But any tips you'd like to throw out on this babeh, go ahead! As well if you just want to make a post about optimizing that doesn't relate to the shuntingyard/reversepolishcalculator then go ahead (you may have to give examples for me to understand).
*I decided to make this algorithm when Roland_Yonaba suggested it*
Roland_Yonaba wrote:I'd like to suggest taking a look at a famous algorithm that might be of interest, to you. It is named Shunting-Yard algorithm. There a dozens of implementations available over the internet, so porting it to Lua would not be a problem, hopefully.