2017-01-31から1日間の記事一覧

TI-Nspire & Lua / スクリプティングのヒント / テーブルの最適化 / テーブルのサイズを決めておく

Reference: http://adriweb.free.fr/t3/2014/Advanced_TI-Nspire_Lua_Programming.pptx, p.5 “ Help Lua know more about the tables you're going to use! ” timeStart = timer.getMilliSecCounter() for i = 1, 1000000 do local a = {} a[1] = 1; a[2] = …