All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: poky@yoctoproject.org
Subject: Re: [PATCH 1/1] sanity.bbclass: add check for creation of long filenames
Date: Thu, 2 Dec 2010 14:36:16 +0000	[thread overview]
Message-ID: <201012021436.16462.paul.eggleton@linux.intel.com> (raw)
In-Reply-To: <4CF7AA43.2070503@mlbassoc.com>

On Thursday 02 December 2010 14:16:35 Gary Thomas wrote:
> On 12/02/2010 07:13 AM, Paul Eggleton wrote:
> > On Thursday 02 December 2010 12:21:06 Gary Thomas wrote:
> >> Is this information cached?  It's seems quite the burden
> >> to have to create/remove ~400 files each time on startup.
> >
> > I'm not sure what you mean - this check (well, all sanity checks) should only occur once per invocation of bitbake.
> 
> Precisely what I mean.  The computed max length won't change
> unless you move the tmp or sstate-cache directories, so recomputing
> it every time you run bitbake is a horrible overhead.

It would also change if the filesystem where TMPDIR or SSTATE_DIR is stored changes, which could occur without the path itself changing, e.g. someone switches over their home directory to be encrypted. It would be possible to cache this check based on the filesystem and path, but is it really worth it given that we would have to read the disk to check if these had changed anyway? I do understand we have to be careful about items we add to the sanity checks, but in this instance we're talking about writing one file - something that should take a matter of milliseconds.

Cheers,
Paul


  reply	other threads:[~2010-12-02 14:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1291135878.git.paul.eggleton@linux.intel.com>
2010-11-30 16:40 ` [PATCH 1/1] sanity.bbclass: add check for creation of long filenames Paul Eggleton
2010-12-02 12:21   ` Gary Thomas
2010-12-02 14:13     ` Paul Eggleton
2010-12-02 14:16       ` Gary Thomas
2010-12-02 14:36         ` Paul Eggleton [this message]
2010-12-02 14:41           ` Gary Thomas

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=201012021436.16462.paul.eggleton@linux.intel.com \
    --to=paul.eggleton@linux.intel.com \
    --cc=poky@yoctoproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.