[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: Increase sliding windows to 4*4k



This is an automated email from the git hooks/post-receive script.

broucaries-guest pushed a commit to branch master
in repository lintian.

commit bc8b3e5b6f75c7d608afa0f9694e045403a31a99
Author: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
Date:   Sat Jul 4 18:47:10 2015 +0200

    Increase sliding windows to 4*4k
    
    Speed up is about 10% on worst offender.
    
    Signed-off-by: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
---
 checks/cruft.pm                             | 2 +-
 debian/changelog                            | 3 +++
 t/tests/cruft-gfdl-fp-sliding-win/pre_build | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/checks/cruft.pm b/checks/cruft.pm
index f542e9a..1c90cb2 100644
--- a/checks/cruft.pm
+++ b/checks/cruft.pm
@@ -32,7 +32,7 @@ use v5.10;
 # Half of the size used in the "sliding window" for detecting bad
 # licenses like GFDL with invariant sections.
 # NB: Keep in sync cruft-gfdl-fp-sliding-win/pre_build.
-use constant BLOCKSIZE => 4096;
+use constant BLOCKSIZE => 16384;
 
 use Lintian::Data;
 use Lintian::Relation ();
diff --git a/debian/changelog b/debian/changelog
index d9d0569..b59da08 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,9 @@ lintian (2.5.33) UNRELEASED; urgency=medium
       SONAMES with package names.  The "v5" suffix is the
       recommended suffix for packages affected by the GCC-5
       libstc++6 C11 ABI breakage.
+  * checks/cruft.pm:
+    + [BR] Increase windows size to 16384 bytes.
+      Gain about 10% in cruft.
   * checks/description.desc:
     + [NT] Clarify that the empty-line control statement " ."
       permits no other characters on the same line. Thanks
diff --git a/t/tests/cruft-gfdl-fp-sliding-win/pre_build b/t/tests/cruft-gfdl-fp-sliding-win/pre_build
index 85b8668..4676bb6 100755
--- a/t/tests/cruft-gfdl-fp-sliding-win/pre_build
+++ b/t/tests/cruft-gfdl-fp-sliding-win/pre_build
@@ -9,7 +9,7 @@ use strict;
 use warnings;
 
 # Keep in sync with checks/cruft
-use constant BLOCK_SIZE => 4096;
+use constant BLOCK_SIZE => 16384;
 
 my ($rootdir) = @ARGV;
 my $dir = "$rootdir/debian/src";

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: