franko / gsl-shell

GSL library shell based on LuaJIT2
http://franko.github.io/gsl-shell/
GNU General Public License v3.0
92 stars 12 forks source link

Substituted [] access in loops with :get and :set #18

Closed h4rm closed 10 years ago

h4rm commented 10 years ago

Fixed the performance problem referred to in the last pull request.

franko commented 10 years ago

Thank you Benjamin, that's great.

Actually you can go even a step further and hoist the methods get and set but probably we don't need to do that. I guess that luajit will optimize everything on the fly. What was really important was to avoid the dual indexing.

Thank you for your help.

Francesco