As of 2.12h-1.12.2, lag is observed in capability handling during crafting:
net.minecraftforge.oredict.OreDictionary.getOreIDs() is known to be very slow and cause memory allocations. Consider using a cache or fast filter before using that method.
tomdodd4598 commented
Ok, using a cache now - hopefully will speed this up :)