Eric, On Mon, Sep 28, 2020 at 1:38 PM Eric Shulman <elsdes...@gmail.com> wrote:
> On Monday, September 28, 2020 at 2:08:22 AM UTC-7, Atronoush wrote: >> >> Great! I tested and it works fine. I just experienced opening >> TiddlyTools/Time/Calendar is little slow but I think it is fine. >> > > I've tried to optimize the Calendar code as much as possible, but it's > doing a LOT of work to display 365 days, with date-specific filters for > events and tiddler changes. > > The worst bit of overhead is the matchevents() code, which can add as much > as a half-second (500msec) of processing for each month when there are lots > of events to filter. For a 12-month display, this turns into a 6 second > wait before the calendar is rendered. It seems to be related to the use of > split[] and regexp[] filters, but I have not (yet) found any workarounds > that produce better results... but I'm still working on it. > I understand processing large amounts of data using wikitext /JS causes this lag. > > I mean a tiddler lists all events (or taks,...) in a nice >> chronological order like the one we see in Google Calendar. >> Google Calendar has a year/month/day/5day and schedule view. I got the >> idea from that. >> > > Here's a bit of wikitext code that displays the event data as a table. > \import TiddlyTools/Time/Calendar > \define showevents() yes > <$wikify name="events" text=<<getevents>>> > <table> > <$list filter=<<events>> variable="event"> > <tr> > <td><$text text={{{ [<event>split[;]first[]] }}} /></td> > <td><$text text={{{ [<event>split[;]rest[]join[ ]] }}}/></td> > </tr> > </$list> > </table> > One thing the above code doesn't yet do is to *sort* the events by date. > I'll try to work this into a new macro in the Calendar code, e.g., > <<calendar_listevents>> > I'll let you know when I have something more for you to try... > > Wonderful. I think now, the Timer is a powerful private Tiddlywiki Calendar system. Appreciate all your efforts. > -e > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/03cc181f-a4d0-47bc-a9ce-06a4df30545eo%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/03cc181f-a4d0-47bc-a9ce-06a4df30545eo%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAKHVXmrwAKpLnPQmpBLY4208ZS%2BPyHRWoETzssbAj-GqE49yeg%40mail.gmail.com.