Hi, i'm using monotone 0.25 at work. It's sometimes a bit slow on my
2GHZ computer, but that's fine. Except when i need to 'monotone log
--brief <somefile>', sometime it take up to a minute. No matter, that's
fine. Database is 50MB.

        So today, at home, on my PPC 1GHz with a devel version of monotone
(pulled today), i wanted to do a diff between recent update of po/fr.po.
I first did a 'monotone log po/fr.po' but canceled it thinking 'it's too
slow, i only need the revision names, i don't care about commit
messages'. I tried a simple 'monotone log --brief po/fr.po' on
net.venge.monotone. Ouch. --last 10 saved my life. It took about 15s.

So i added timings (attached patch) and ran a full log. It took me half
an hour to print the full brief log for a single file. Hot cache,
monotone binary and database in ram. No I/O. 100% CPU during 1900
seconds. I've attached the trace and made a nice chart with gnumeric.
What's worrying me is the shape of the line ... it's exponential. Would
it take me 2H to log a file in a few months ?

-- 
GNOME http://www.gnomefr.org/
LibGTop http://directory.fsf.org/libgtop.html

image/svg

[   1.60]       f6f15f55bfcb36865592ac2c10df58ff27430664 [EMAIL PROTECTED] 
2006-03-11T11:40:55 net.venge.monotone
[   2.00]       44cdef272262c72685ae5a03e0e8848dbc53d873 [EMAIL PROTECTED] 
2006-03-10T11:10:08 net.venge.monotone
[   2.48]       a5c55e9e7399818ac09935ee9de968b6603c6ae5 [EMAIL PROTECTED] 
2006-03-10T04:57:56 net.venge.monotone
[   2.97]       f5b5822d3a5445c2ad0fbd011c400085ca8fd21d [EMAIL PROTECTED] 
2006-03-09T22:26:08 net.venge.monotone
[   3.46]       b10d35d927fc3dbd5c0c6d6c9801365f204bc0a7 [EMAIL PROTECTED] 
2006-03-09T22:23:01 net.venge.monotone
[   4.29]       77291ff4a58f74159b85880158e9ac0e70375aac [EMAIL PROTECTED] 
2006-03-09T22:13:22 net.venge.monotone
[   5.19]       e7ca0dad1611058c2cc0d51092f202b0b38edd29 [EMAIL PROTECTED] 
2006-03-09T18:56:26 net.venge.monotone
[   5.54]       2ffeefcc1cac4b90adae9f9083de1a1fbbccbb37 [EMAIL PROTECTED] 
2006-03-09T18:43:55 net.venge.monotone
[   6.23]       1e0fe320001aa9365f54580e6f081110ce7a9b6f [EMAIL PROTECTED] 
2006-03-09T16:33:16 net.venge.monotone
[   7.48]       671eca8159ff2948dab7a25996c60c2dd22ca5c8 [EMAIL PROTECTED] 
2006-03-09T15:55:22 net.venge.monotone
[   8.74]       554452c129842333e00aa8ccd9315b02d9999667 [EMAIL PROTECTED] 
2006-03-08T13:42:30 net.venge.monotone
[   9.28]       51a3154916224125e10e13c0cc27e4a2797d31bb [EMAIL PROTECTED] 
2006-03-07T15:46:17 net.venge.monotone
[   9.96]       d78d9c3dc4a8038747f44d691bead0e8678a5f63 [EMAIL 
PROTECTED],[EMAIL PROTECTED] 2006-03-05T10:53:37,2006-03-05T11:05:51 
net.venge.monotone
[  10.33]       01d52dbdf36321e8f2f66f246558a1da4af45987 [EMAIL PROTECTED] 
2006-03-07T14:54:57 net.venge.monotone
[  12.10]       a2afaebec310f6935f6f8685fc9206830baf5519 [EMAIL PROTECTED] 
2006-03-06T13:02:33 net.venge.monotone
[  14.19]       d4f035613c3af7731652313de1a15c6e344c710b [EMAIL PROTECTED] 
2006-03-06T04:55:31 net.venge.monotone
[  15.75]       7f826ce622540b24232d89c412021a87375a7712 [EMAIL PROTECTED] 
2006-03-05T21:00:25 net.venge.monotone
[  16.36]       a986c9358ff7118c336806993c86ad1ace4ae6d4 [EMAIL PROTECTED] 
2006-03-04T05:52:16 net.venge.monotone
[  20.60]       066d915b7ea398f5b16659c4bcef976b344dcc65 [EMAIL PROTECTED] 
2006-03-03T05:40:40 net.venge.monotone
[  25.99]       8535c83c46f5deebf8e57279c6af6256c45c2b01 [EMAIL PROTECTED] 
2006-03-02T11:45:22 net.venge.monotone
[  28.12]       4112a9bfa0f9daf667aa469d8b55e9c0a815fee4 [EMAIL PROTECTED] 
2006-03-01T18:08:05 net.venge.monotone
[  29.65]       11aaf1f320ad6b22470fc18a3345bb41e7f547b0 [EMAIL PROTECTED] 
2006-03-01T18:03:54 net.venge.monotone
[ 156.07]       8e077377af5480d0b0ba32134f6f464f2996a46d [EMAIL PROTECTED] 
2006-01-10T22:00:02
[ 166.02]       2fff487fe5dd228abecd3896e107dd3d31735fe1 [EMAIL PROTECTED] 
2006-01-09T21:28:59
[ 171.31]       167b28f76c477145a6813e853e3960fe38c9122e [EMAIL PROTECTED] 
2006-01-08T03:58:05
[ 172.65]       7bab83f63d740d41ffc6a0632e3485d6754e25d6 [EMAIL PROTECTED] 
2006-01-06T05:32:58 net.venge.monotone
[ 173.62]       840ced38356429054b3a0086e1b2121e210dfdbd [EMAIL PROTECTED] 
2006-01-04T06:53:31 net.venge.monotone
[ 175.00]       cb8355151f3dede0dd59d1af3721984d2e804409 [EMAIL PROTECTED] 
2005-12-30T07:10:42 net.venge.monotone
[ 175.51]       e4313bc1b1cac49509d016349aa615147526e17d [EMAIL PROTECTED] 
2006-01-02T13:54:35 net.venge.monotone
[ 176.16]       4e861660b2a94d630991b4d4d6a7a5b58301bc64 [EMAIL PROTECTED] 
2006-01-02T13:28:51 net.venge.monotone
[ 179.40]       53785231cf54192a449c378a6120313b3e842890 Matt Johnston <[EMAIL 
PROTECTED]> 2005-12-26T14:38:39
[ 186.55]       f434e625278d2e09e0f3d08eac487bdf804c31ec [EMAIL PROTECTED] 
2005-12-05T19:43:02 net.venge.monotone
[ 187.06]       0f0fff8de22dbc0849dc7a311667af1ddfcd8aba [EMAIL PROTECTED] 
2005-12-02T12:39:28 net.venge.monotone
[ 188.08]       c185e4e0e592ba287e6d52616c6938be4b2b5899 [EMAIL PROTECTED] 
2005-12-01T15:33:14 net.venge.monotone
[ 189.42]       3cae1ede21fc7caa460c5b3b3f7c1b55cc81f6e1 [EMAIL PROTECTED] 
2005-11-28T20:14:42 net.venge.monotone
[ 232.78]       ef1a23606ab7c59f9e8be2fe36cd1c58b884f52a [EMAIL PROTECTED] 
2005-11-21T09:58:38 net.venge.monotone
[ 234.27]       9d5ef96a9787588ef4e090583b0cd2c0ba265641 [EMAIL PROTECTED] 
2005-11-20T23:46:25 net.venge.monotone
[ 256.53]       0612f187a29b5072c385e96e0f78d6c7e92172dd [EMAIL PROTECTED] 
2005-10-21T19:25:36 net.venge.monotone
[ 279.05]       650d4a285dbd92d434399202ec7fd3d412ba444d [EMAIL PROTECTED] 
2005-11-21T00:53:23
[ 288.04]       db5ea01f8542238ad5fca5891abb19589104a8bc [EMAIL PROTECTED] 
2005-11-21T01:03:27
[ 289.91]       6fe362f8c0931497100120d86cf1a39f21ca0798 [EMAIL PROTECTED] 
2005-11-21T00:57:24
[ 364.67]       c8283419196d716e7530d137837479370ea6093b Timothy Brownawell  
<[EMAIL PROTECTED]> 2005-10-07T20:26:13
[ 401.28]       a80e16618cae059c8935e7b08057aa5ae239bcb0 Matt Johnston <[EMAIL 
PROTECTED]> 2005-10-02T10:29:49
[ 403.54]       e5720ece0e78e4c456b15f8642adf66a06e98206 [EMAIL PROTECTED] 
2005-09-30T11:06:58 net.venge.monotone
[ 421.65]       33967feb640198e4dcf5d6f748ce3c62e59f4c14 [EMAIL PROTECTED] 
2005-09-30T09:46:43 net.venge.monotone
[ 442.63]       ce5d9e82d010f175a454374fa084cd46bbe18167 [EMAIL PROTECTED] 
2005-09-30T09:45:04 net.venge.monotone
[ 519.69]       a78ba44a92329d8becc57f04990cff6a4f98552d Matt Johnston <[EMAIL 
PROTECTED]> 2005-09-26T09:51:06
[ 530.69]       70e9ba55e7a8ac1b0b5137e31316e0e4ecaefcea Matt Johnston <[EMAIL 
PROTECTED]> 2005-09-10T07:43:49
[ 578.44]       5f1af19dc65e0d302711e1b296006595d47b22ea [EMAIL PROTECTED] 
2005-09-08T21:05:46 net.venge.monotone
[ 595.87]       6630e3671d66b0fbb74e8a835cac80f6ffcb02d7 [EMAIL PROTECTED] 
2005-09-07T13:15:09 net.venge.monotone
[ 665.79]       c6197b600d00470cb74312492779b463e2c327ea [EMAIL PROTECTED] 
2005-09-06T01:24:41 net.venge.monotone
[ 885.52]       a38e8b1b003529c398c62b95a6ced5696d545c74 [EMAIL PROTECTED] 
2005-08-27T00:24:56
[ 946.89]       aff6c7cb9a6666b9f1e04ec342ed5e106766897f [EMAIL PROTECTED] 
2005-08-26T08:17:34 net.venge.monotone
[1007.49]       f8dca666132db292aa656084de9d768f962b8b73 [EMAIL PROTECTED] 
2005-08-30T22:21:56 net.venge.monotone
[1011.16]       126b4694223eb9dfde44ec1d2bdde0f015ac4991 [EMAIL PROTECTED] 
2005-08-25T16:14:11 net.venge.monotone
[1057.53]       8f00eefe790f93d0d2ed9c9af3683d566945dbaf [EMAIL PROTECTED] 
2005-08-30T19:02:44 net.venge.monotone
[1163.63]       4502b59fca0b80f2de32b62f808a62abb5501d00 [EMAIL PROTECTED] 
2005-08-24T10:41:02 net.venge.monotone
[1170.89]       59476d69d873aca23fc833c53c19a35162957d7b [EMAIL PROTECTED] 
2005-08-25T01:20:12 net.venge.monotone
[1350.74]       84ed16d8b06b05318259b764ffc1a3b569b13d41 [EMAIL PROTECTED] 
2005-08-24T05:55:26 net.venge.monotone
[1422.65]       bcd1bd1a6e7b97a588bd9664225c3a02a2791cb8 [EMAIL PROTECTED] 
2005-08-24T01:59:32 net.venge.monotone
[1437.88]       08317d6366cb6cef13fa7aac6a0b7a32910a0f85 [EMAIL PROTECTED] 
2005-08-24T01:58:11 net.venge.monotone
[1478.16]       5fd870db6ef96567203cb745301946a42e7d2c66 [EMAIL PROTECTED] 
2005-08-24T00:47:35 net.venge.monotone
[1558.56]       03e5ee9c15b980404a531fd56b1b49d1a3f2eb1c Timothy Brownawell  
<[EMAIL PROTECTED]> 2005-10-13T21:21:29
[1891.71]       5092ecfd218b56db0d18e3cfb5da820061b810bd [EMAIL PROTECTED] 
2005-08-22T11:45:49 net.venge.monotone
# 
# old_revision [f6f15f55bfcb36865592ac2c10df58ff27430664]
# 
# patch "commands.cc"
#  from [44ef6fcd7921bd4be0ee3ea14a043d9727fcc77a]
#    to [1b7331f79289e90a2218640b21f231b98ec69e5c]
# 
============================================================
--- commands.cc	44ef6fcd7921bd4be0ee3ea14a043d9727fcc77a
+++ commands.cc	1b7331f79289e90a2218640b21f231b98ec69e5c
@@ -51,6 +51,8 @@
 #include "roster_merge.hh"
 #include "roster.hh"
 
+#include <sys/time.h>
+
 //
 // this file defines the task-oriented "top level" commands which can be
 // issued as part of a monotone command line. the command line can only
@@ -3584,6 +3586,9 @@
     OPT_LAST % OPT_NEXT % OPT_REVISION % OPT_BRIEF % OPT_DIFFS % OPT_NO_MERGES %
     OPT_NO_FILES)
 {
+  struct timeval start_time;
+  gettimeofday(&start_time, 0);
+
   if (app.revision_selectors.size() == 0)
     app.require_workspace("try passing a --revision to start at");
 
@@ -3736,6 +3741,16 @@
           {
             if (global_sanity.brief)
               {
+                struct timeval now;
+                gettimeofday(&now, 0);
+
+                double elapsed;
+                elapsed = now.tv_sec * 1E6 + now.tv_usec;
+                elapsed -= start_time.tv_sec * 1E6 + start_time.tv_usec;
+                elapsed /= 1E6;
+
+                cout << FL("[%7.2f]\t") % elapsed;
+
                 cout << rid;
                 log_certs(app, rid, author_name);
                 log_certs(app, rid, date_name);

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

_______________________________________________
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to