julia
353a3935 - strings: compile `annotatedstring` once, rather than per argument types (#64999)

Commit
5 hours ago
strings: compile `annotatedstring` once, rather than per argument types (#64999) `annotatedstring`, which concatenates styled strings, was specialized on every combination of argument types it was called with, and so was its iteration over the argument tuple. Its body already branches on each argument's type at run time. Stop specializing it, and read the arguments with builtins so that no generic function specializes on their types instead. A single plain `String` gets a direct method. This makes the package images of code that builds styled text smaller, and the concatenation itself faster. Assisted-by: Claude Code (Opus 5.5)
Parents
Loading