On Sep 4, 3:31 am, "maps.huge.info [Maps API Guru]" <[EMAIL PROTECTED]>
wrote:
> > In the case of Internet Explorer, it just counts JavaScript statements
> > executed without a "yield" (timer interrupt / user interaction).
>
> >    http://support.microsoft.com/kb/175500
>
> > A fast CPU just reaches the 5 million statement limit sooner.  I have
> > changed my registry to virtually unlimited (0x7FFFFFFF).  Some of my
> > HTA scripts chug all night long.
>
> I never knew this before. Quite interesting really. Typical for MS
> though, faster CPU = problems just occur faster. Love it.
>
> Thanks for the info.

It may be different for firefox but I use Internet Explorer (HTAs) for
my all night crunch sessions because it supports the ActiveXObject
"Scripting.FileSystemObject" which gives me access to my hard drive.

JavaScript is slow but I am hooked on its content addressable arrays.
To reinvent the facility in C++ just ain't worth the effort.

I actually prefer to break up long loops with a "setTimeout" because
it lets me place a progress message on the screen.

Instead of:

for (var i=0;poly[i];i++)
{
    for (var j=0;area[j];j++)
    {
        whatever
    }
}

You can do:

var i=0;

function BigLoop()
{
    clearTimeOut(whatever);

    if (! poly[i]) return;

    for (var j=0;area[j];j++)
    {
        whatever
    }

    i++;

    place something on the screen to report progress

    whatever=setTimeout("BigLoop()",0);
}

....

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to