Hi Mat, 

If we only look at the the <$list line, they are fundamentally different. 

The *first *one assigns a macro-call to the filter variable
The *second *one assigns a string value to the filter variable. 

The *first list* needs to run 2 filters. 1 in the set widget 1 in the list 
widget

The *second list *needs to run only 1 filter .. which shuld be faster as 
calling a macro and run 2 filters


If you open the https://tiddlywiki.com/prerelease/ and paste this code: 

\whitespace trim 

<$set name=myfilter filter="[tag[foo]]">

<$list filter=<<myfilter>> /> 

<$list filter="""[<myfilter>]"""/>
</$set>

Activate the preview: *Parse Tree*
You can see the result is very simlar. See the macro-call

Activate the preview: *Widget Tree*
The result is different. 

--------------------

Open close the preview several times .... 
F12 ... open dev consule
select the "Console" tab
click the "bin" button to clear the output

type: $tw.perf.log()

which will open the filter log. .... The filter a should be around line 
40   .... filter [<myfilter>] is around line 80

This suggests, the second one is faster. ... I'm not sure if the new filter 
optimizer is responsible for this. 

have fun!
mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7c6fff1b-d5f8-45f2-a760-c30452555f3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to