site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=JorfDBVyea4A142SoBqmft6ScBlQOJjIbSQAgW+9lIA=; b=vw5+LxGAWag97FX+Z4WxUgf5k0o+W+n9nEGwp1W9xjEFFCBIK/JPXaOLo/r1bZFPw7 lN5v6+WTxe4yAOcrUZF60PlBEzdFnrviBbRwaFmuzsTTleiBdgOrnTveVAWoiKP89Xxv IvBtxXQPlQYwDhvkEC7oA4LgZ5SEO/htVI5W0= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=M+GnC2CJTLkkXlBS3u+BuDmlivgnexrOffaky52pIM42/v3gokOZApSnwlxtU+AtBZ 8NsS3BgJPqyXKXLxexymgmdppH4mlqZf0htPPD1i8TxkOSiTv98Q9ruJyB9Dv5AWACOK +H3RCQLczwm+Xoxrgie4xVgoVfdvTZNd+2AQo= On Aug 20, 2009, at 5:46 PM, Eric Gouriou wrote: Do initializers go into total init time? Thanks, Joel [1] http://gist.github.com/171379 --- faster mac firefox http://tinyco.de _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... To get a better idea of how long the dynamic linking takes, I recommend using DYLD_PRINT_STATISTICS I ran with extra dyld options to print libraries loaded as well as initializers and got plenty of information [1]. The statistics are as follows: total time: 1.3 seconds (100.0%) total images loaded: 106 (93 from dyld shared cache, 56 needed no fixups) total segments mapped: 49, into 5894 pages with 684 pages pre-fetched total images loading time: 328.8 milliseconds (24.1%) total rebase fixups: 148,829 total rebase fixups time: 4.0 milliseconds (0.2%) total binding fixups: 24,863 total binding symbol lookups: 796, average images searched per symbol: 2.3 total binding fixups time: 112.2 milliseconds (8.2%) total bindings lazily fixed up: 45 of 19,103 total init time time: 919.3 milliseconds (67.3%) total images with weak exports: 3 It seems that the binding fixup time can be discounted (8.2%). I think the image loading time (24.1%) and total initialization time (67.3%) can be improved upon, though. This email sent to site_archiver@lists.apple.com