mrhattyhat
01-15-2008, 01:28 PM
This is going to be kind of a hard one to explain in detail, so I'll stay at a high level and hope to get some general direction from all you LZX pros.
The basics: I'm working on a calendar app that behaves similar to Outlook's "month" view. It's working, for the most part, and allows adding of events by dragging across multiple dates, etc. The data, which includes all the dates, scheduled events, etc, are provided by a PHP script. Like I said, it's all working (for the most part) the way I need it to.
The problem: now that I have the basic functionality working, I'm noticing that the more events I schedule, the slower the app is to load. For example, when I first load the app clean (no events), it loads up pretty fast; but as I add events, it takes more and more time to respond. Obviously this is not ideal.
So, keeping this a high level "this is what it could be" kind of question, what are the most likely culprits for this slowing? Replication? Databinding (should I be using datapointers more rather than datapaths)? I tried switching the replication to lazy and, apart from introducing some weird rendering behaviors, there was zero performance improvement.
What are your thoughts?
Oh, it should be noted that I dumped the XML output from the PHP script and copied it to a local file, then tried loading the same data as a static XML file rather than a remote run-time call. There were no performance problems in that scenario at all. It loaded immediately, even with a bunch of events. So the problem only seems to be present when loading the data at run-time. It should also be noted that I can access the PHP script directly in the browser to see the XML output and it responds almost immediately, so the slowing doesn't appear to be network latency either.
I'm not asking for someone to solve my problem, necessarily; but rather for a few general pointers at where to look to gain some performance improvements in a data-driven app of this nature.
The basics: I'm working on a calendar app that behaves similar to Outlook's "month" view. It's working, for the most part, and allows adding of events by dragging across multiple dates, etc. The data, which includes all the dates, scheduled events, etc, are provided by a PHP script. Like I said, it's all working (for the most part) the way I need it to.
The problem: now that I have the basic functionality working, I'm noticing that the more events I schedule, the slower the app is to load. For example, when I first load the app clean (no events), it loads up pretty fast; but as I add events, it takes more and more time to respond. Obviously this is not ideal.
So, keeping this a high level "this is what it could be" kind of question, what are the most likely culprits for this slowing? Replication? Databinding (should I be using datapointers more rather than datapaths)? I tried switching the replication to lazy and, apart from introducing some weird rendering behaviors, there was zero performance improvement.
What are your thoughts?
Oh, it should be noted that I dumped the XML output from the PHP script and copied it to a local file, then tried loading the same data as a static XML file rather than a remote run-time call. There were no performance problems in that scenario at all. It loaded immediately, even with a bunch of events. So the problem only seems to be present when loading the data at run-time. It should also be noted that I can access the PHP script directly in the browser to see the XML output and it responds almost immediately, so the slowing doesn't appear to be network latency either.
I'm not asking for someone to solve my problem, necessarily; but rather for a few general pointers at where to look to gain some performance improvements in a data-driven app of this nature.