| From | Sent On | Attachments |
|---|---|---|
| Stefan Kost | Mar 8, 2010 6:28 am | |
| Bob Stayton | Mar 12, 2010 12:08 pm | |
| Ron Catterall | Mar 12, 2010 3:38 pm | |
| Stefan Kost | Mar 12, 2010 5:28 pm | |
| Sam Fischmann | Mar 12, 2010 5:38 pm | |
| Stefan Kost | Mar 12, 2010 8:04 pm | |
| Bob Stayton | Mar 13, 2010 10:00 am | |
| Jirka Kosek | Jul 13, 2010 11:17 am | |
| deannelson | Jul 13, 2010 12:05 pm | |
| Jirka Kosek | Jul 13, 2010 2:49 pm | |
| Sam Fischmann | Jul 13, 2010 4:05 pm | |
| Jirka Kosek | Jul 14, 2010 10:01 am | |
| Sam Fischmann | Jul 14, 2010 10:27 am | |
| deannelson | Jul 14, 2010 1:42 pm | |
| Jirka Kosek | Jul 20, 2010 3:45 pm | |
| deannelson | Jul 20, 2010 4:58 pm | |
| Sam Fischmann | Jul 20, 2010 5:19 pm | |
| Jirka Kosek | Jul 20, 2010 5:22 pm |
| Subject: | Re: [docbook-apps] gentext.template eats 1/3 of CPU | |
|---|---|---|
| From: | Bob Stayton (bo...@sagehill.net) | |
| Date: | Mar 13, 2010 10:00:14 am | |
| List: | org.oasis-open.lists.docbook-apps | |
Indeed, I'm not able to make the stylesheet available. But it would have only
served
as a model anyway, not a useful stylesheet for others, because it was so
specialized.
Bob Stayton Sagehill Enterprises bo...@sagehill.net
----- Original Message ----- From: "Ron Catterall" <ro...@catterall.net> To: "Bob Stayton" <bo...@sagehill.net>; "docbook-apps" <docb...@lists.oasis-open.org> Sent: Friday, March 12, 2010 3:39 PM Subject: Re: [docbook-apps] gentext.template eats 1/3 of CPU
Bob
I imagine these belong to your client, but would it be possible make something
like
this freely available? I know: just what does the user want and not want. Not
easy. And anyway, not DocBook philosophy. Just a thought, there's a lot of
Docbook
I never use, but I'll stick with the full DocBook.
Ron
Bob Stayton wrote:
I had a client who needed speed and did not need all the
features, options, and customizations, so I wrote a new set of XSL templates
that
did exactly what they wanted for the elements they were using, and no more.
They
were fast. And they were simple enough for them to maintain.
Bob Stayton Sagehill Enterprises bo...@sagehill.net
----- Original Message ----- From: "Stefan Kost" <enso...@hora-obscura.de> To: <docb...@lists.oasis-open.org> Sent: Monday, March 08, 2010 6:29 AM Subject: [docbook-apps] gentext.template eats 1/3 of CPU
hi,
I have a first version of a callgraph profiler for libxml/libxslt (https://bugzilla.gnome.org/show_bug.cgi?id=612186). With this I looked at profiles for applying the docbook stylesheets. These are the topmost entries:
index % time self children called name 0.043 0.380 1947/3287 gentext.template.exists [4] 0.002 0.397 234/3287 *[object.title.template] [49] 0.380 0.380 1071/3287 gentext.template [0] 0.000 0.397 17/3287 part[object.title.template] [90] 0.000 0.397 18/3287 chapter[object.title.template] [102] [0] 33.26 0.380 0.380 3287 gentext.template [0] 0.380 0.380 1071/1071 gentext.template [0]
----------------------------------------------- 0.009 0.149 786/3967 *[find.chunks] [19] 0.010 0.154 738/3967 href.target.uri [18] 0.012 0.241 754/3967 *[chunk-filename] [16] 0.056 0.202 1638/3967 *[recursive-chunk-filename] [2] 0.001 0.136 35/3967 in.other.chunk [76] 0.001 0.173 16/3967 process-chunk [55] [1] 11.84 0.135 0.000 3967 chunk [1]
-----------------------------------------------
lines with [x] in begin are the templates. lines above the callers, lines below the callees. Any idea how to make gentext.template less slow? Or make it called less often. There sees to be many: match="*" mode="object.title.template" and match="*" mode="object.title.markup" leading to it, but I can't see any template that uses e.g. mode="object.title.markup"? Any ideas?
Stefan
-- Ron Catterall Ph.D. D.Sc. ro...@catterall.net http://catterall.net





