On Wed, 03 Dec 2008 12:04:06 -0000 Helder Magalhães <[EMAIL PROTECTED]> wrote:
> > At the moment, I'm running pure Linux, so IE is not a testable > > option. I probably need to get a VM up to test IE. > > Probably more modifications are required: for example, ASV and Renesis > don't accept a method as setInterval/setTimeout argument - a string > must be used instead... :-| I vaguely remember that from back in the old days. Thanks for reminding me. > > Thanks for the input. > > You're welcome. ;-) > > > I've read through the article - which I found quite valuable, by the > way - and have a few comments which I'd like to share. > > 1. There are some limitations while using "setInterval": > 1.1. As far as I know, setInterval doesn't consider the time it > takes to execute the code block called. This means that if you have a > very short interval and a heavy (long/heavy) block of code, you may > not get the desired behavior (read as: things can go pretty messy). > Although scripting is executed as single thread, which assures that no > nasty interactions will occur, nevertheless the timing may messed up. > Please correct me if I'm wrong! I believe this is the reason for the lower update rates on Wuse. And, to some extent, this is what I'm trying to measure. The setInterval function is a likely approach for doing script-based animation, so I wanted to measure it to determine how well it will work for people. I probably do need some testing (later) to really push the limits to see where this approach breaks down. It's hard to tell people what to avoid if we don't know where the edges are. > 1.2. Firefox as a known issue [1] with this particular timing > mechanism. While it's pretty harder to reproduce using Firefox 3 than > in Firefox 2, it still applies... I'll look into that, thanks. > 1.3. I'd generally propose "setTimeout" as a timing mechanism > (called each time, immediately before returning), specially when the > time consumed in the called method isn't relevant (and, even so, one > can simply measure the time it took). I can run another set of tests using setTimeout, so we can compare the methods (in a separate report, probably). Since I'm not using the interval time to measure the interval, I think I'm okay on this. > 2. Couple of suggestions: > 2.1. In "What I'm Trying to Measure", maybe referencing (link to?) > the Firefox bug around the "setInterval" text wouldn't be a bad idea, > at least to point out this known limitation; I'll do that, thanks. > 2.2. In "Measurement Methodology", I also believe mentioning > (linking to?) the Batik bug report for the programmatic navigation > feature [4] would also be valuable - one can then see when and how was > it fixed (thanks for contributing it, as we're at it). Definitely. (I really should have thought to do that.) > 3. Few typos which I think you will appreciate: > 3.1. In "Rationale" [5], "surpised" --> "surprised"; > 3.2. In "The Instruments Test" [6], "modification to" --> > "modification of" (?); > 3.3. In "The Wuse Test" [7], "hghest" --> "highest"; So much for spell checkers.<grin/> Thanks, I'll correct these. > [1] https://bugzilla.mozilla.org/show_bug.cgi?id=291386 > [2] http://anomaly.org/wade/projects/svg/profiling/#what_measure > [3] http://anomaly.org/wade/projects/svg/profiling/#methodology > [4] https://issues.apache.org/bugzilla/show_bug.cgi?id=46072 > [5] http://anomaly.org/wade/projects/svg/profiling/#rationale > [6] > http://anomaly.org/wade/projects/svg/profiling/#instruments_test_results > [7] http://anomaly.org/wade/projects/svg/profiling/#wuse_test_results Thank you very much for your help on this. G. Wade -- There will always be things we wish to say in our programs that in all known languages can only be said poorly. -- Alan Perlis ------------------------------------ ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

