View Single Post
Old 08-16-2011, 11:54 AM   #1
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,461
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Does anyone use "general program mode" template functions?

It occurred to me that I could compile templates written using general program mode into python. Doing this could lead to template execution speed improvements of anywhere from 10 to 50 times. (GPM templates begin with the word "program:".) Building the GPM compiler would be a fair amount of work, so it is worth the effort only if people actually use GPM.

Column coloring uses GPM, but as these templates are invoked only for the books shown on the library view, the payback is not nearly as large as one would get when compiling a template for a composite custom column.

Could anyone who uses GPM in a custom column post here? If you post, it would be nice to get an idea of the complexity of the program. I don't care what it does, only how many function calls it makes. Example programs would be nice, if you are willing to share them.
chaley is offline   Reply With Quote