I have an idea for optimisation: most cChunk::Get/SetBlock functions do multiple comparisons for error checking, which theoretically shouldn't be needed in release since I remember xoft saying in one of my PRs that those functions shouldn't do sanity checks for their callers, and someone else saying that the server will not be made to protect against badly written plugins.
Moving those checks into debug only conditions may help?
Moving those checks into debug only conditions may help?