]> git.donarmstrong.com Git - perltidy.git/commitdiff
update comments
authorSteve Hancock <perltidy@users.sourceforge.net>
Thu, 6 Aug 2020 15:06:40 +0000 (08:06 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Thu, 6 Aug 2020 15:06:40 +0000 (08:06 -0700)
lib/Perl/Tidy/VerticalAligner.pm

index 0bf075ede7057a3963f3a94ecf628b5895437bb1..be07a290952f82c63216f317895e218ec9d4efbc 100644 (file)
@@ -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;
     }