bc4d0cc806
PoiTypes.forState ran per palette entry of every section a villager searched (and per block of the sections that hold one), with a string match on the block name each time and a per-search hash map in front. At world load, when every villager looks for a job site, bed and meeting point at once, that was 16 % of the tick. The POI type of every state is now worked out once, the first time a villager looks, and read from a table after that. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>