#92059Message->isValidHeaderValue uses inefficient string parsing
Description
Message->isValidHeaderValue currently uses a combination of “for”, “strlen” and “ord” on individual substring offsets to iterate over the bytes of a string.
This is possible to achieve with “unpack” which reduces memory usage and random substring access. Potentially saving thousands of calls to “ord” and one call to “strlen” per header.