From: Steve Hancock Date: Thu, 6 Aug 2020 15:06:40 +0000 (-0700) Subject: update comments X-Git-Tag: 20200822~15 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=63c66d0382201a505d78ac6fc2764f989a5455df;p=perltidy.git update comments --- diff --git a/lib/Perl/Tidy/VerticalAligner.pm b/lib/Perl/Tidy/VerticalAligner.pm index 0bf075ed..be07a290 100644 --- a/lib/Perl/Tidy/VerticalAligner.pm +++ b/lib/Perl/Tidy/VerticalAligner.pm @@ -2203,9 +2203,16 @@ EOM { # closure for decode_alignment_token + # This routine is called repeatedly for each token, so it needs to be + # efficient. We can speed things up by remembering the inputs and outputs + # in a hash. my %decoded_token; sub initialize_decode { + + # We will re-initialize the hash for each file. Otherwise, there is + # a danger that the hash can become arbitrarily large if a very large + # number of files is processed at once. %decoded_token = (); return; }