2. After the apple boot beep, hold down Command-S
3. Wait for command prompt
4. $ mount -uaw
5. $ passwd <yourusername>
$ sudo su -
$ yum install
$ yum install kernel-headers kernel-devel gcc
I really like the Genshi templating library. However, it really doesn’t perform nearly as well as something like ClearSilver. Out of curiosity I updated the benchmarks included with Genshi to include the chameleon.genshi package. It performs amazingly well.
These numbers are from the genshi bigtable benchmark which generates a 1000x10 table (1000 rows of 10 numbers each). The load and creation of the template and the construction of the list of dicts that make up the 1000 rows of data are all done outside of the timing. All this benchmark tests is the time to pump this data into the template and render.
I’m still suprised by the fact that chameleon beats clearsilver here.
Ah. The ClearSilver benchmark looks something like:
So now I understand why the clearsilver test is taking so long. That benchmark code transforms the list of dicts into an HDF dataset and does some string escapes and so on. It’s easy to confirm that this transformation is the majority of the runtime of the ClearSilver benchmark.
Moving that construction of the HDF dataset outside of the timed benchmark function shows us that the majority of the time ClearSilver spends is not rendering your content but building an HDF dataset.
However, it is still very impressive that chameleon runs as fast as it does given that it is able to work with the unmodified python data structure rather then an optimized HDF dataset. And honestly in our system I don’t think we can move the construction of the HDF out of the rendering pipeline so that \~60ms rendering time with ClearSilver is actually going to be slower then Chameleon. Combine the speed of Chameleon with Genshi’s syntax and you’ve got a pretty sweet templating system.
Of course, Chameleon’s default template language (TAL) has many of the same aspects I like about Genshi.
So let’s get a number for TAL too:
You can grab the package here: http://pypi.python.org/pypi/chameleon.genshi/
And you’ll also need chameleon core: http://pypi.python.org/pypi/Chameleon/
What few docs there are I found here: http://chameleon.repoze.org/docs/latest/genshi.html
They are not terribly helpful, mostly I found out everything by reading the normal chameleon docs and the official genshi docs.
Honestly, I think you’re better off just using ZPT as that is both better supported by chameleon and better documented.
Can you provide some link for docs on chameleon.genshi?
Where can i go for this?
$ mkdir Emacs; cd Emacs
$ cvs -z3 -d:pserver:email@example.com:/cvsroot/emacs co emacs-cvsOr check it out via Bazaar:
$ bzr branch http://bzr.savannah.gnu.org/r/emacs/trunk emacs-bzr
$ mkdir emacs-build
$ cd emacs-build
$ ../emacs-cvs/configure –with-ns
$ make install
$ open nextstep/Emacs.app # just a test to confirm it works before installing
$ sudo cp -r src/Emacs.app /Applications
$ ../emacs-cvs/configure –prefix=/usr –with-x-toolkit=no –with-jpeg=no –with-png=no –with-gif=no –with-tiff=no
$ ./src/emacs -q # just a test to confirm it’s working before installing
$ sudo make install