Namely, the unescaping of escaped template markers ($${ -> ${ and %%{ -> %{) is done directly when they are encountered now. This speeds up common cases quite a bit.
Please note that I didn't bother to implement the same improvement for the hcl-rs parser because it will be removed in the future and then just uses hcl-edit under the hood for parsing.
The changes in https://github.com/martinohmann/hcl-rs/pull/247 and https://github.com/martinohmann/hcl-rs/pull/249 enabled some improvements to the string parsing code which this change implements.
Namely, the unescaping of escaped template markers (
$${
->${
and%%{
->%{
) is done directly when they are encountered now. This speeds up common cases quite a bit.Before:
After:
Please note that I didn't bother to implement the same improvement for the
hcl-rs
parser because it will be removed in the future and then just useshcl-edit
under the hood for parsing.