summaryrefslogtreecommitdiffstats
path: root/complete
diff options
context:
space:
mode:
authorTobias Decking <Tobias.Decking@gmail.com>2024-06-05 15:56:00 +0200
committerGitHub <noreply@github.com>2024-06-05 09:56:00 -0400
commitc9ebcbd8abe48c8336fb4826df7e9b6fb179de03 (patch)
tree144219db56f26dcb24323b649ca73a3ca68d6b46 /complete
parentdec0dc319653364d7a2c23dd78e65c8b0532f270 (diff)
globset: optimize character escapingHEADmaster
Rewrites the char_to_escaped_literal and bytes_to_escaped_literal functions in a way that minimizes heap allocations. After this, the resulting string is the only allocation remaining. I believe when this code was originally written, the routines available to avoid heap allocations didn't exist. I'm skeptical that this matters in the grand scheme of things, but I think this is still worth doing for "good sense" reasons. PR #2833
Diffstat (limited to 'complete')
0 files changed, 0 insertions, 0 deletions