diff options
author | Tobias Decking <Tobias.Decking@gmail.com> | 2024-06-05 15:56:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-05 09:56:00 -0400 |
commit | c9ebcbd8abe48c8336fb4826df7e9b6fb179de03 (patch) | |
tree | 144219db56f26dcb24323b649ca73a3ca68d6b46 /grep-searcher/git@git.beyermatthi.as:ripgrep | |
parent | dec0dc319653364d7a2c23dd78e65c8b0532f270 (diff) |
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 'grep-searcher/git@git.beyermatthi.as:ripgrep')
0 files changed, 0 insertions, 0 deletions