• Performance: pre-allocate map and regex slice capacities in UpdateMappings. • Verified with amp module tests (all passing)