binnie.extrabees.apiary.TileExtraBeeAlveary.getAlvearyBlocks() is inefficient

Issue #331 new
Svein Ove Aas created an issue

Currently, around 4% of my server's runtime is being spent in this function, despite having a relatively small number of alvearies. Or, to be more exact I suppose, it's being spent in updateAlvearyBlocks--and about 75% of that time is spent in getTileEntity.

Rewriting the alvearies every tick is expensive. You should be using neighbour events to create/destroy them, not polling. At least, I assume that's what you're doing; I haven't been able to find the source code.

Comments (0)

  1. Log in to comment