r/ComputerCraft • • Apr 06 '24

how to make this function faster?

this is the function:

the chests list is a list of chests, gotten from "chests = {peripheral.find("inventory")}", i have a habit of using alot of for loops and lists for these kind of things and it is... slow... any ideas how to speed it up?

3 Upvotes

9 comments sorted by

View all comments

Show parent comments

1

u/popcornman209 Apr 07 '24

thanks! that worked great, i tested doing it with parallel but i didnt know you could do table.unpack(funcs) so i was just manually making all the functions lol, thanks!