It seems when accessing the current tiddler variable, the performance is in the following order
- the highest:
<currentTiddler>
- then the
all[current]
- the lowest
is[current]
Is this true in all situations?
It seems when accessing the current tiddler variable, the performance is in the following order
<currentTiddler>
all[current]
is[current]
Is this true in all situations?
I think this is true according to arguments others in the know have put in the past, but performance is most likely influenced in many ways by what you then do with it.
<currentTiddler>
is using an already identified value and the next two examples need to identify what the current tiddler is, one may need to step back and ask how was <currentTiddler>
set in the first place.
all[current]
not is[current]
but I have always felt it should logically be the other wat around.Do you ever experience a local or in the worst case a more global performance issue?
With performance if it is the wiki load time, there are other solutions.
What about [{!!title}]
?
<currentTiddler>
as I mentioned above since it does assume the current tiddler is set.\define mymacro(tiddlername)
<$set name=currentTiddler value="""$tiddlername$""" emptyValue=<<currentTiddler>> >
</$set>
\end
<<mymacro>> <!-- uses current tiddler -->
<<mymacro "tiddlername">> <!-- uses tiddlername -->
A point to be made with performance issues is I have found them to be rare and prefer instead to code for readability, reuse and ease of use, especially when returning.
<!-- filter order and nested lists optimised for performance -->
lest you return to make a minor change and damage all your prior optimisation work.