Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] Untractably slow CVE checks in support/scripts/pkg-stat
Date: Thu, 27 Feb 2020 22:32:48 +0100	[thread overview]
Message-ID: <87mu93lnr3.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20200227175443.71a6461f@windsurf> (Thomas Petazzoni's message of "Thu, 27 Feb 2020 17:54:43 +0100")

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:

 > Hello Titouan,
 > On Thu, 27 Feb 2020 16:05:41 +0100
 > Titouan Christophe <titouan.christophe@railnova.eu> wrote:

 >> 1. Uninstall the version distributed by apt:
 >> `apt remove python-ijson`
 >> 2. Install the latest version with pip:
 >> `pip install [--user] ijson`
 >> 3. Start the pkg-stat script, it should complete in less than 5 minutes.

 > Thanks a lot for the investigation and research!

 > I tested with ijson 2.6 installed from pip, and things are indeed a lot
 > better. It's not 5 minutes though:

 > real	19m55.557s
 > user	18m7.632s
 > sys	1m53.140s

Ok, but still almost an order of magnitude faster - Thanks!

If needed, I think we can get most of the speedup even with the older
2.3 version packaged in Debian/Ubuntu by selecting a better backend than
the fallback python version that used to be default - E.G. something
like what was done automatically from version 2.5 onwards:

https://github.com/ICRAR/ijson/commit/4c6d4144ea56e883634bd8c3eddca02c6f54a8f7

But I'm not sure if it is worth the trouble.

-- 
Bye, Peter Korsgaard

      reply	other threads:[~2020-02-27 21:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-27 15:05 [Buildroot] Untractably slow CVE checks in support/scripts/pkg-stat Titouan Christophe
2020-02-27 16:54 ` Thomas Petazzoni
2020-02-27 21:32   ` Peter Korsgaard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mu93lnr3.fsf@dell.be.48ers.dk \
    --to=peter@korsgaard.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox