View Single Post
Old 04-10-2012, 11:52 AM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,475
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by razorsoup View Post
Is there any benefit or detriment to using TPM over GPM or vice versa?
For many people, TPM templates are easier to write and read. GPM templates are much more expressive -- can be used to solve more complicated problems.

GPM templates will usually have much better performance when they are used in custom columns. Calibre compiles them to python and runs them as part of calibre itself, so the templates run between 20 and 50 times faster than the equivalent TPM template.

On the other hand, compilation takes some about of time, which for small libraries may exceed the template's total running time. But for small libraries template running time doesn't really matter, so this shouldn't be an issue.
chaley is offline   Reply With Quote