[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] basic_io inventory
From: |
Stephen Leake |
Subject: |
Re: [Monotone-devel] basic_io inventory |
Date: |
Tue, 24 Apr 2007 20:56:51 -0400 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) |
Stephen Leake <address@hidden> writes:
> Daniel Carosone <address@hidden> writes:
>
>>> So I'd like to add an option to not output any info for files that are
>>> currently up-to-date. That would save significant time both in running
>>> 'mtn automate inventory' and in parsing the output in Emacs.
>>
>> Really only the latter; we still need to examine the workspace to
>> determine the file is up to date so we could then not list it, and
>> that's by far the majority of the time.
>
> It would be interesting to measure.
I did a simple measurement. For 'mtn automate inventory' on the
monotone workspace, with the full basic_io output, it takes 36 seconds
on my machine.
I then commented out the output part of the code (everything after
inventory_filesystem in AUTOMATE(inventory, "[PATH]...",
options::opts::none)); so there is _no_ output. Running that takes 25
seconds.
That's a significant savings.
It's probably possible to save even more by not allocating memory to
hold the inventory for stanzas we won't print; that's a much more
invasive change to the current code.
--
-- Stephe
- [Monotone-devel] Re: xmtn: Emacs integration via DVC, (continued)
- [Monotone-devel] Re: xmtn: Emacs integration via DVC, Bruce Stephens, 2007/04/12
- Re: [Monotone-devel] Re: xmtn: Emacs integration via DVC, Christian Ohler, 2007/04/22
- [Monotone-devel] basic_io inventory (was xmtn: Emacs integration via DVC), Daniel Carosone, 2007/04/22
- Re: [Monotone-devel] basic_io inventory (was xmtn: Emacs integration via DVC), Thomas Keller, 2007/04/23
- Re: [Monotone-devel] basic_io inventory, Stephen Leake, 2007/04/24
- Re: [Monotone-devel] basic_io inventory, Nathaniel Smith, 2007/04/24
- Re: [Monotone-devel] basic_io inventory, Daniel Carosone, 2007/04/24
- Re: [Monotone-devel] basic_io inventory, Christian Ohler, 2007/04/24
- Re: [Monotone-devel] basic_io inventory, Daniel Carosone, 2007/04/24
- Re: [Monotone-devel] basic_io inventory, Stephen Leake, 2007/04/24
- Re: [Monotone-devel] basic_io inventory,
Stephen Leake <=
- Re: [Monotone-devel] basic_io inventory, Stephen Leake, 2007/04/26
- Re: [Monotone-devel] basic_io inventory, Thomas Keller, 2007/04/26
- Re: [Monotone-devel] basic_io inventory, Stephen Leake, 2007/04/26
- Re: [Monotone-devel] basic_io inventory, Nathaniel Smith, 2007/04/26
- Re: [Monotone-devel] basic_io inventory, Thomas Keller, 2007/04/27
- Re: [Monotone-devel] basic_io inventory, Stephen Leake, 2007/04/28
- Re: [Monotone-devel] basic_io inventory, Thomas Keller, 2007/04/28
- Re: [Monotone-devel] basic_io inventory, Stephen Leake, 2007/04/28
- Re: [Monotone-devel] basic_io inventory, Thomas Keller, 2007/04/29
- Re: [Monotone-devel] basic_io inventory, Thomas Moschny, 2007/04/28