Hi Mark! > On Dec 10, 11:44 pm, "Paul Downey (psd)" <[email protected]> > wrote: > > > I've an alternative macro version of this which > > does less (I like plugins which do one thing) and > > might be helpful to compare when thinking about > > the cost versus benefits of transclusion over > > macros: > > Could you elaborate?
Well, I've a slight preference for macros over transclusion only because they're slightly more modular and simplify the wikitext. Replacing the implementation without impacting TiddlyWiki content is easier with macros, e.g. I've just modified this plugin to add a "selected" class for easier styling, and bundled in some simple qunit tests: http://whatfettle.com/2008/07/ThemeButtonPlugin > I've often wondered if there was a performance > hit when using transclusion rather than a macro. Performance at that level hasn't been a concern for me! Given it's usually easier to measure performance than theorise about - if it's something you think is an issue then suggest putting the exact same code in a transclusion and a macro then timing each of them repeated 10,000 times and report back. Best, -- Paul (psd) http://blog.whatfettle.com -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

