From: gzjjgod@gmail.com (Jjgod Jiang)
Subject: [sup-talk] Using DTrace to profile sup-sync
Date: Sat, 15 Dec 2007 23:05:04 +0800 [thread overview]
Message-ID: <ddd65cda0712150705j6543cbd9ud13d479708171223@mail.gmail.com> (raw)
Hi,
When I was trying to build index for my GMail account (which has 28525
mails in inbox)
with sup-sync, I found the estimated finish time is too long (24
hours) to accept. So I
decided to use DTrace to do some profiling work on sup-sync, and here
is the result.
The top n method spent most of the time is:
___ OVERLAP TIMES: ___ ______ ELAPSED ______
CLASS METHOD COUNT AVG(us) SUM(us)
Net::IMAP::ResponseParse next_token 570993 282 161345198
Net::IMAP::ResponseParse lookahead 770871 283 218826568
Class _parse 28612 8051 230376494
Class parse 28902 9105 263159874
Net::IMAP::ResponseParse match 485344 563 273536106
Redwood::IMAP make_id 28534 9985 284928748
Net::IMAP::ResponseParse msg_att 28534 11423 325954315
Array each 86883 3819 331861324
Net::IMAP::ResponseParse numeric_response 28538 15239 434895984
Net::IMAP::ResponseParse response_untagged 28551 17003 485460410
Net::IMAP::ResponseParse response 28566 19149 547032919
Net::IMAP::ResponseParse parse 28566 19233 549418654
Net::IMAP get_response 28551 19922 568811230
I can send the complete result if needed. HTH.
BTW: it only took mutt half an hour to fetch all the mail headers.
- Jiang
next reply other threads:[~2007-12-15 15:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-15 15:05 Jjgod Jiang [this message]
2007-12-15 19:25 ` William Morgan
2007-12-15 19:38 ` William Morgan
2007-12-15 21:04 ` William Morgan
2007-12-19 4:38 ` William Morgan
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=ddd65cda0712150705j6543cbd9ud13d479708171223@mail.gmail.com \
--to=gzjjgod@gmail.com \
/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