Why Trac (after 0.13.x Version) choose Genshi but not clearsilver?

12 views
Skip to first unread message

sirtoozee

unread,
Jul 6, 2007, 2:03:47 AM7/6/07
to Genshi
I argue that ClearSilver could performance better than Genshi due to
it is developed in C.

And all the plugins maintained in the trac-hack have to re-write to
meet the new Template Engine.

Even if Genshi is XML oriented, is it support SVG engine or other
customized XML libraries?

Matt Good

unread,
Jul 6, 2007, 2:51:22 AM7/6/07
to Genshi
I'll follow up briefly, but if you want to continue the discussion
please use the trac-dev list since this is related to Trac development
decisions, not the Genshi project itself.

On Jul 5, 11:03 pm, sirtoozee <sirtoo...@gmail.com> wrote:
> I argue that ClearSilver could performance better than Genshi due to
> it is developed in C.

Yes, ClearSilver is much faster than Genshi, but Genshi is fast enough
for our needs, and far more flexible. One key feature is that
Genshi's "match templates" will allow Trac users to override and
customize the Trac templates more thoroughly than is possible with
ClearSilver. Genshi is also getting some great support for i18n which
should make the Trac internationalization much smoother. Also,
ClearSilver's C API is part of the problem. ClearSilver is better
designed for use within C applications, while Genshi is designed
specifically for Python, so it fits better within the way Python
applications are developed. Future versions of Genshi will include
optimized C implementations of performance-critical functions which
should help make it faster.

> And all the plugins maintained in the trac-hack have to re-write to
> meet the new Template Engine.

Yes, though Trac will maintain a compatibility layer at least for the
0.11 release to give users time to convert. The conversion process
isn't too hard, and Genshi should make the templates easier to
maintain in the long-run.

> Even if Genshi is XML oriented, is it support SVG engine or other
> customized XML libraries?

Genshi can be used to generate any XML document, including SVG.
However, Genshi is not an SVG engine; you'll need to look at other
libraries for that.

-- Matt

Jorge Vargas

unread,
Jul 10, 2007, 10:41:15 AM7/10/07
to gen...@googlegroups.com
Also you should add that genshi templates are simpler to write and
debug and that having less C dependencies makes trac easier to install
in platforms like windows.
> -- Matt
>
>
> >
>

Emmanuel Blot

unread,
Jul 10, 2007, 1:32:02 PM7/10/07
to gen...@googlegroups.com
> Genshi can be used to generate any XML document, including SVG.
> However, Genshi is not an SVG engine; you'll need to look at other
> libraries for that.

As an example, the Trac:RevtreePlugin uses embedded SVG with Genshi templates.

Cheers,
Manu

Reply all
Reply to author
Forward
0 new messages