TeamDman / SuperFactoryManager

Mozilla Public License 2.0
35 stars 15 forks source link

High tick usage for getRecipe #57

Closed clienthax closed 2 years ago

clienthax commented 4 years ago

It seems that getRecipe currently uses a lot of tick time as it is called every crafting operation. Would it be possible to cache the result of this for a decent speedup, as its unlikely the programs will be changed often?

image

Hachuurui commented 3 years ago

I have noticed this issue as well. We have a single user on our server who setup one SFM setup to make food, and when its active, the server grinds to a halt. When I analyzed it, it was at 615kms. Stopping the SFM from running return the server to normal.

TeamDman commented 2 years ago

Closing since focusing on new version (full rewrite)