Thank you very much and pass a good Easter (or a good week-end,
anyway :-) )
Oscar
http://corax.altervista.org
Greetings,
Jar
Also, great looking TW.
Ken Girard
But IncludePlugin doesn't support load on demand (yet?) as far as I know.
That is, if include tiddlers from another TW, it will always load them
with the core TW, which results in the same filesize and loading time.
I might be wrong though... !?
-- F.
That is, if include tiddlers from another TW, it will always load them
with the core TW, which results in the same filesize and loading time.
<<include "file://C:/Private/journals/2006-12.html" delay: 8000 >>In this case the file is included 8000 ms (8 seconds) after TiddlyWiki is loaded. So the user can already start working with TiddlyWiki after the (smaller) core TW is loaded. After a while other files will access become available.
On Apr 9, 10:48 am, "Udo Borkowski" <udo.borkow...@googlemail.com>
wrote:
> > That is, if include tiddlers from another TW, it will always load them
> > with the core TW, which results in the same filesize and loading time.
>
> > If you add the filesize of the core TW and the included TW you will get
>
> roughly the same filesize as the "big one". If you add the load and include
> time you will also get the same time, possibly even a little more. But you
> may make it "feel faster" by using the "delay:" parameter
>
> <<include "file://C:/Private/journals/2006-12.html" delay: 8000 >>
>
> In this case the file is included 8000 ms (8 seconds) after TiddlyWiki is
> loaded. So the user can already start working with TiddlyWiki after the
> (smaller) core TW is loaded. After a while other files will access become
> available.
>
> Another advantage of the include feature is: "Saving" gets faster since only
> the (smaller) core TW file needs to be saved after a change.
>
> Udo
>
Good point, Udo - I hadn't thought of that!
> Another advantage of the include feature is: "Saving" gets faster since
> only the (smaller) core TW file needs to be saved after a change.
True - especially since it's unlikely that Oscar will retroactively
change any of the older blog entries, which aren't stored in the core
TW. (Other, less-linear/chronological TWs might be more problematic.)
While we're at it though: Is there any chance that load-on-demand
features will be available sometime in the foreseeable future? Or would
that require major changes in the TW core code?
-- F.
I see - thanks for clearing that up.
(+5 Insightful: 70% Insightful, 30% Interesting ;) )
-- F.
Has there been a change, or is there just some uncertainty or
disagreement about how things will / should evolve, or did I misread
those original posts?
Andrew
The new feature is kicks in when a link to a missing tiddler is
clicked. If the tiddler hosting the link is synced to a particular
server, then an attempt is made to asynchronously load the missing
tiddler from that server. There is also a mechanism to allow missing
tiddlers to be resolved when the host tiddler isn't synced.
One usage scenario is to pull in a single article from Wikipedia.
Clicking on links to other Wikipedia articles will cause the target
article to be automatically loaded.
Right now, the mechanism isn't super efficient in some scenarios - for
instance, if you use it to load tiddlers from an ordinary TiddlyWiki
file (whether loaded from file:// or http://), then the file is
reloaded afresh each time a missing tiddler is resolved. We'll get
that sorted out though.
Cheers
Jeremy.
--
Jeremy Ruston
mailto:jer...@osmosoft.com
http://www.tiddlywiki.com
Cheers
Jeremy.
My reason for wanting to understand this issue, and the likely course
of future developments, is that I am interested in being able to
accommodate large but not indefinitely large amounts of tiddlers and
text.
Internally, the feature would be based on the convention that if the
'text' property of a Tiddler object were undefined, then the tiddler
would be either unloaded or in the process of being loaded, with a
further member 'loadStatus' tracking the precise loading status of the
tiddler.
On an attempt to display a tiddler that hasn't yet been loaded, an
asynchronous task would be kicked off to load the necessary data from
the server.
This is a slightly different approach than that proposed by Udo
earlier in this thread, because it requires code that access the
'text' property of tiddlers to be aware of the new behaviour. At first
sight, it seems that if we had enforced access to the 'text' property
via an accessor method, we could have seamlessly upgraded to the new
behaviour. Sadly, in practice, the new behaviour is asynchronous and
it is not in general possible or desirable to change an existing
synchronous function to asynchronous behaviour without breaking
dependent code.
Cheers
Jeremy
On 9 Apr, 10:48, "Udo Borkowski" <udo.borkow...@googlemail.com> wrote:
> > That is, if include tiddlers from another TW, it will always load them
> > with the core TW, which results in the same filesize and loading time.
>
> > If you add the filesize of the core TW and the included TW you will get
>
> roughly the same filesize as the "big one". If you add the load and include
> time you will also get the same time, possibly even a little more. But you
> may make it "feel faster" by using the "delay:" parameter
>
> <<include "file://C:/Private/journals/2006-12.html" delay: 8000 >>
>
> In this case the file is included 8000 ms (8 seconds) after TiddlyWiki is
> loaded. So the user can already start working with TiddlyWiki after the
> (smaller) core TW is loaded. After a while other files will access become
> available.
>
> Another advantage of the include feature is: "Saving" gets faster since only
> the (smaller) core TW file needs to be saved after a change.
>
> Udo
>