Microblog : A very long article Wikipedia article on the orientation of toilet paper [7 jun à 22:52] [R]

Mardi, 8 mai 2007

Profiling 2

Traduction: [ Google | Babelfish ]

Catégories : [ Blog ]

Profiling results for the new blog engine (main page):

Total Elapsed Time = 1.245757 Seconds
  User+System Time = 1.235757 Seconds
Exclusive Times
 %Time ExclSec CumulS  #Calls sec/call Csec/c Name
  14.9   0.185 0.586       1   0.1851 0.5857 blosxom::generate
  12.0   0.149 0.187     134   0.0011 0.0014 interpolate_fancy::__ANON__
  6.47   0.080 0.158      14   0.0057 0.0113 blosxom::BEGIN
  5.66   0.070 0.070      40   0.0017 0.0017 textrite::rite
  4.53   0.056 0.095     367   0.0002 0.0003 entries_index::__ANON__
  4.05   0.050 0.059       8   0.0062 0.0074 Net::SMTP::BEGIN
  3.24   0.040 0.108       8   0.0050 0.0135 writeback::BEGIN
  2.43   0.030 0.030       7   0.0043 0.0043 CGI::_compile
  2.43   0.030 0.043       9   0.0033 0.0048 CGI::import
  2.27   0.028 0.037     317   0.0001 0.0001 interpolate_fancy::_resolve_nested
  1.62   0.020 0.020       1   0.0200 0.0200 archives::filter
  1.62   0.020 0.019       4   0.0050 0.0048 entries_index::BEGIN
  1.62   0.020 0.030       5   0.0040 0.0060 autotrack::BEGIN
  1.62   0.020 0.020      27   0.0007 0.0007 vars::import
  1.62   0.020 0.010      62   0.0003 0.0002 Exporter::import

The problem in textrite::rite came from the use of look-behind assertions in Perl regexp. I've changed all of them so that look-behind is not needed anymore. The same problem occurs in interpolate_fancy::__ANON__, but I'm not going to look into it yet.

The other problem was that textrite::rite was called for all the stories, including the ones that were not displayed (which was most of them). I changed the internal structure of the main script so that the processing of the story happens after discarding the non-displayed ones.

[ Posté le 8 mai 2007 à 12:25 | pas de commentaire | ]

Adresse de trackback

https://weber.fi.eu.org/blog/Blog/profiling2.trackback

Commentaires

Aucun commentaire

Ajouter un commentaire

Vous pouvez utiliser les balises HTML suivantes: <p>, <br>, <em> <strong>, <pre>. Les URLs commençant par http:// seront automatiquement transformées en liens hypertextes.

(optionnel)
(optionnel)


Sauver mon nom et mon URL/Email pour la prochaine fois

12 / 6 =