Hi Tristan

> I got a little deeper look into TiddlyWiki and came to wonder why the storage 
> of Tiddlers is implemented the way it is. As I understand it every Tiddler is 
> a single <div> which are all stored in the "Tiddler Area". But since every 
> Tiddler is a object with its own properties ("created", "author", etc.), 
> wouldn't it be a logic decision to keep them as JavaScript objects and store 
> everything as a big JSON string in the storage area so we do not need to 
> parse it back again?

The serialisation format of tiddlers with the standalone HTML file is indeed as 
a bunch of DIVs with custom attributes. The origin of the format was TiddlyWiki 
Classic back in 2004 (before JSON was discovered). Technically, it would be 
quite easy to change the format to something else, but in general we don’t see 
sufficient payback to make it worth the effort, and the inevitable backwards 
compatibility problems it would cause.

Having said that, using HTML as the basis for the serialisation format does 
provide some interoperability with HTML/XML tooling, which is also sometimes 
useful.

Best wishes

Jeremy

> 
> My only clue is that there are some performance thoughts which I (with my 
> limited JavaScript skills) do not get. Any hint or link would be very much 
> appreciated.
> 
> 
> Thanks guys
> Tristan
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/03eeba93-0901-489e-a3cc-803559418c91%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/03eeba93-0901-489e-a3cc-803559418c91%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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/CED23F28-EFAF-4C9C-A49F-C161E3010DFC%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to