Dear all,

As a matter of general interest: my timeline (now with 2769 discrete 
events) using an xml source file, has taken up to 9 minutes to load in FF 
and never less than about 2.5 minutes. Translating the source file to json 
and using new Date() objects for the dates instead of strings thus:

{'start': new Date(1216,2,15),
'end': new Date(1216,2,18)
}

produces a BIG performance increase. all 27k events now loads in my FF in 
about 9.5 seconds.

note: using Date() objects obviates the need for an explicit 
'dateTimeFormat': 'iso8601', declaration at the top of the file. so just:

{
'events' : [
{'start': new Date(1211,3,12),
.
.
.

Note especially: the js Date() object takes zero-indexed months:
0 => Jan, 1 => Feb, ..., 11 => Dec

Thanks David, Mason, et alia for help with this.

Jon

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to