From mboxrd@z Thu Jan 1 00:00:00 1970 From: gzjjgod@gmail.com (Jjgod Jiang) Date: Sat, 15 Dec 2007 23:05:04 +0800 Subject: [sup-talk] Using DTrace to profile sup-sync Message-ID: 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