On Tue, Jul 04, 2006 at 01:33:02PM +0200, Buchcik, Kasimier wrote:
> Hi,
> 
> Since Result Tree Fragments, which are xmlDoc
> structures in Libxslt, are massively used, I would like
> to add a cache to xsltTransformContext in order to
> reuse the xmlDoc structures.
> This would also avoid a lot of mutex locks: In xsltCreateRVT()
> the string dictionary is assigned to the new doc and
> xmlDictReference() is called, which does a xmlRMutexLock().

  Okay why not it's a reasonnable optimization. But I'm a bit
surprized, a mutex lock/unlock should be on i386 architecture not
much more expensive than an atomic test and set operation. If it
really show up int the profile maybe the thread library aren't 
really optimal.

> Beside smoother creation of local variables, this would also
> speed up the implementation of EXSLT: Result Tree Fragments
> are created in the split() and tokenize() functions.

  Okay,

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
[email protected]
http://mail.gnome.org/mailman/listinfo/xslt

Reply via email to