[tw] Re: Query: Save a Timestamp. HOW?

2018-03-06 Thread @TiddlyTweeter
Thanks Thomas

Your conclusion kinda reflects what Jed said before.

So I will look more at what using console tools can do.

Best
Josiah 

Thomas Elmiger wrote:
>
> In this case, I would try to modify the regex engine to log a timestamp in 
> the browser console after each run … 
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/6d820c95-a118-4c42-bac3-695753c02fbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Query: Save a Timestamp. HOW?

2018-03-06 Thread Thomas Elmiger
In this case, I would try to modify the regex engine to log a timestamp in the 
browser console after each run … that would not require much JS knowledge I 
guess. 

Good luck!
Thomas 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/da58481d-e645-463d-8ee5-c4c509f7d3f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Query: Save a Timestamp. HOW?

2018-03-06 Thread @TiddlyTweeter
Hi Thomas

I'm working with long sequences of complex regular expressions in one 
Tiddler. The issue is that sometimes I need to optimise one or two of them 
that are slowing render. But unless I can insert a timer that records the 
time at a given point I have no idea which of the regular expressions are 
inefficient. This makes development overly complicated. Without it I have 
to, one-by-one, test the regex. Fine if you have 3. Unworkable if you have 
25. 

My BEST scenario would be able to insert a timestamp before and after the 
regular expressions I think are the problem to isolate the issues (in 
render). It is NOT important if that saving of a Timestamp is itself an 
overhead, it can be adjusted for. And, in some ways I think it would be 
better saved to a separate State Tiddler rather than a field, if you grasp 
what I mean.

Please ask if anything is unclear or you need examples.

Best wishes
Josiah

Thomas Elmiger wrote:
>
> What exactly are you trying to achieve?
>
> Maybe I have some interesting but complex macros from my Reminders for 
> ToDoNow. 
>
> Basically they render a list, if a given date (from a field) is in the 
> past. 
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/f16365ef-88e3-4f5e-8408-1f28a58220aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Query: Save a Timestamp. HOW?

2018-03-06 Thread Thomas Elmiger
Hi Josiah, 

What exactly are you trying to achieve?

Maybe I have some interesting but complex macros from my Reminders for ToDoNow. 

Basically they render a list, if a given date (from a field) is in the past. 

Cheers
Thomas 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/e893acf3-d529-4209-8198-5715502dd769%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Query: Save a Timestamp. HOW?

2018-03-06 Thread @TiddlyTweeter
Thanks Jed. That is really helpful example and information.

Yes, I was hoping to use it to time a complex Tiddler render. But I can use 
the button for another case, so its still useful. 

I'll look at the fake dom route, though probably beyond my competence.

Best wishes
Josiah

Jed Carty wrote:
>
> This works:
>
> <$button>
> CLICK!!
> <$action-setfield bob=<>/>
> 
>
> If you mean how to save it without the button than that means it has to 
> change a tiddler as a side effect of rendering which is one of the things 
> tiddlywiki avoids doing.
>
> If you are trying to use this to test how long it takes to render a 
> tiddler than there may be better ways to do it, like rendering it into a 
> fake dom node and using javascript to check the time difference.
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/fa72ffd3-0c2e-41e8-9a27-76bfb9b21e81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Query: Save a Timestamp. HOW?

2018-03-06 Thread Jed Carty
This works:

<$button>
CLICK!!
<$action-setfield bob=<>/>


If you mean how to save it without the button than that means it has to 
change a tiddler as a side effect of rendering which is one of the things 
tiddlywiki avoids doing.

If you are trying to use this to test how long it takes to render a tiddler 
than there may be better ways to do it, like rendering it into a fake dom 
node and using javascript to check the time difference.

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/29998d17-2adb-4a87-8ad1-69ef60240911%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.