Like:
Code: Select all
...
if not rawget(imgTable,v) then
...
Code: Select all
...
if not rawget(imgTable,v) then
...
Code: Select all
if not imgTable[v] then
Code: Select all
defaultvalue = 1
function default(tab, index)
return tab[index] == nil and defaultvalue or tab[index]
end
Code: Select all
value = table[key] or table.default
Yes, the most programmers that never had to program anything timing-sensitive like, you know, a videogame. The same people that gave Java such prominence, wholly unwarranted, which if shall I remind anyone is the core reason why there's a certain stigma attached to Android devices. It's not a very good example of a quote that anyone should go by. "What you sow, so shall you reap" is more like it. If you didn't design it to run fast, it will not. Or rather, if you make it out of pieces of code that are slow individually, it will run slow as a whole."Optimization is the root of all evil" is one that is constantly said amongst programmers
Users browsing this forum: Google [Bot], Semrush [Bot] and 2 guests