Microblog: A very long article Wikipedia article on the orientation of toilet paper [Jun 7th, 22:52] [R]

Tuesday, May 8th, 2007

Even Faster!

Categories: [ Blog ]

I dug again into my hacked blosxom to find more ugliness, such as opening files for all the stories, including the ones that are not going to be displayed. This divided the time spent in blosxom::generate by 3.

Surprisingly, replacing the look-behind assertions in interpolate_fancy::__ANON__'s regexps didn't made as big a difference as in textrite::rite (1.11 ms against 0.813 ms), probably because there wasn't that many of them and weren't called that often

Profiling results are now like this:

Total Elapsed Time = 1.236275 Seconds
  User+System Time = 1.066275 Seconds
Exclusive Times
 %Time ExclSec CumulS  #Calls sec/call Csec/c Name
  10.2   0.109 0.127     134   0.0008 0.0010 interpolate_fancy::__ANON__
  7.50   0.080 0.178      13   0.0061 0.0137 blosxom::BEGIN
  5.06   0.054 0.428       1   0.0540 0.4283 blosxom::generate
  4.41   0.047 0.098     368   0.0001 0.0003 entries_index::__ANON__
  3.75   0.040 0.040       7   0.0057 0.0057 CGI::_compile
  3.75   0.040 0.054       9   0.0044 0.0061 CGI::import
  3.75   0.040 0.040      40   0.0010 0.0010 textrite::rite
  3.66   0.039 0.039     690   0.0001 0.0001 File::Basename::fileparse
  2.81   0.030 0.060       8   0.0037 0.0074 Net::SMTP::BEGIN
  2.81   0.030 -0.000     62   0.0005      -  Exporter::import
  2.81   0.030 0.030      40   0.0007 0.0007 magiclink::story
  1.88   0.020 0.020       5   0.0040 0.0040 autotrack::BEGIN
  1.88   0.020 0.030       7   0.0029 0.0042 IO::File::BEGIN
  1.88   0.020 0.089       8   0.0025 0.0111 writeback::BEGIN
  1.88   0.020 0.020      41   0.0005 0.0005 writeback::real_path

The User+System Time is lower, but for some reason the Total Elapsed Time is about the same.

[ Posted on May 8th, 2007 at 22:42 | no comment | ]

Trackback Address

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

Comments

No comment

Add comments

You can use the following HTML tags: <p>, <br>, <em> <strong>, <pre>. URLs starting with http:// will automatically be turned into hyperlinks.

(optional)
(optional)


Save my Name and URL/Email for next time

8 + 5 =