View template filter efficiency

I’ve been reviewing an older wiki that I recently updated to 5.3.8. It is using several view templates all starting with something like (different tag criteria in each):

<$list filter="[is[current]tag[taggymctagface]]">

I was wondering if that is still best practice? I was thinking that I should change it to something like:

<%if [<currentTiddler>tag[taggymctagface]] %>

I’ve noticed that <currentTiddler> appears to work the same as is[current] and all[current]. Is there a reason to pick one over the others?

<currentTiddler> directly retrieves the variable value, while is[current] and all[current] both need to parse the [current] param value before retrieving the variable value. Thus, <currentTiddler> is very slightly more efficient, but not in any way that you will notice for your view template usage.

I prefer using <currentTiddler> since I feel it is semantically much clearer as to what it is doing.

-e

3 Likes