]> git.donarmstrong.com Git - perltidy.git/commitdiff
-fso, --file-size-order, is now the default
authorSteve Hancock <perltidy@users.sourceforge.net>
Mon, 19 Feb 2024 02:50:23 +0000 (18:50 -0800)
committerSteve Hancock <perltidy@users.sourceforge.net>
Mon, 19 Feb 2024 02:50:23 +0000 (18:50 -0800)
CHANGES.md
bin/perltidy
lib/Perl/Tidy.pm
perltidyrc

index a04f9c1276060134f357cf00ed8fea5372a61b91..945f92dbc20ce47c4e4a896af076cbaa815c30ad 100644 (file)
@@ -2,6 +2,15 @@
 
 ## 2024 02 02.02
 
+    - The option --file-size-order, or -fso is now the default. When
+      perltidy is given a list of multiple filenames to process, they
+      are sorted by size and processed in order of increasing size.
+      This can significantly reduce memory usage by Perl.  This
+      option has always been used in testing, where typically several
+      jobs each operating on thousands of filenames are running at the
+      same time and competing for system resources.  If this option
+      is not wanted for some reason, it can be deactivated with -nfso.
+
     - The option --valign-signed-numbers, or -vsn is now the default. It
       was introduced in the previous release has been found to significantly
       improve the overall appearance of columns of signed and unsigned
index c78b65b96899631f7e1a1da2b5176d5411399c26..2dc4468b6c4108581af5277371c238f0aec23780 100755 (executable)
@@ -5618,9 +5618,10 @@ html files, and another is when the B<-cscw> option is selected. The default is
 to allow timestamps (B<--timestamp> or B<-ts>).
 
 B<--file-size-order> or B<-fso> will cause files to be processed in order of
-increasing size, when multiple files are being processed.  This is useful
-during program development, when large numbers of files with varying sizes are
-processed, because it can reduce virtual memory usage.
+increasing size, when multiple files are being processed.  This is particularly
+useful during program development, when large numbers of files with varying
+sizes are processed, because it can reduce virtual memory usage. This is
+the default and can be deactivated with B<-nfso>.
 
 B<--maximum-file-size-mb=n> or B<-maxfs=n> specifies the maximum file size in
 megabytes that perltidy will attempt to format. This parameter is provided to
index 622b22d18fb0fc9b70e4041217764984b0097d01..dbb23205af6c85cfdcf96d9c1fc33fc970026d5d 100644 (file)
@@ -3839,6 +3839,7 @@ sub generate_options {
       dump-block-types=sub
       extended-syntax
       encode-output-strings
+      file-size-order
       function-paren-vertical-alignment
       fuzzy-line-length
       hanging-side-comments
index 6af5e92e6455a0b2a0f3534d114f9b5f5a2c8696..25e2da4400e4706227e66a4a29c17334088326de 100644 (file)
@@ -26,9 +26,6 @@
 --want-trailing-commas='b'
 --delete-trailing-commas
 
-# this should eventually become the default
---delete-repeated-commas
-
 # For now, require arrows at asymmetric bracket combinations
 --add-interbracket-arrows
 --interbracket-arrow-style=']->{ }->['