[Scons-dev] SCons testing

Tom Tanner (BLOOMBERG/ LONDON) ttanner2 at bloomberg.net
Wed Sep 28 10:12:10 EDT 2016


The general number isn't unexpected. The total number is a bit more so as WhereIs gets called once for each command more or less. If you have 5,000 compile steps that's 5,000 calls to stat the compiler path.

From: bill at baddogconsulting.com At: 09/28/16 13:20:50
To: Tom Tanner (BLOOMBERG/ LONDON), scons-dev at scons.org
Subject: Re: [Scons-dev] SCons testing

stat() likely get's called on every single source file.
That's how you get the date stamps from the file.
So that's not really unexpected.

I"ll take a look at the test vs normal usage on the docbook logic later today.

-Bill

On Wed, Sep 28, 2016 at 7:23 AM, Tom Tanner (BLOOMBERG/ LONDON) <ttanner2 at bloomberg.net> wrote:

I stuck in a pull request a day or so ago to cache the result of WhereIs as doing some tests with strace I've found that 'stat' gets called an /awful/ lot on our system (every single time we have a C++ source to compile for instance).

Whilst I was running the tests, I found that all of the docbook related tests are failing because test.where_is is using a different path (the current OS one) to that used by the test (which are just using c:\windows\system32). I'm not sure what the solution is to this.

Apologies if I sent this before, I thought I had but I can't see anything in my inbox at work which should have picked it up.
_______________________________________________
Scons-dev mailing list
Scons-dev at scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20160928/8c5fade4/attachment.html>


More information about the Scons-dev mailing list