[OpenLayers-Users] Firefox performance issues on Windows

Matt Williamson MatthewDW at gmail.com
Wed Jul 9 13:52:57 EDT 2008


Zac,

> I had a look again and your right, IE is a bit 'smoother' than FF when
> panning around,
> I guess it kinda depends on the grunt of your machine....

Maybe...in fact now I'm specifically wondering if it may have a bit to  
do with graphics hardware--my example machine has a Via Chrome 9  
(integrated graphics). Hmmm...

> FF2 is a bit slower than IE 7 when it comes to math which might
> explain that a little
> http://www.codinghorror.com/blog/archives/001023.html

Most interesting! I had known IE was slower in general, which was why  
I was surprised that it was faster in this case--but that benchmark  
graph is worth a thousand words, showing that most of its poor  
performance is string operation related. Who knew?

But what still puzzles me is why FF on *Windows*, specifically, is  
slower! It's the same JS engine, right? Yet it performs much better-- 
and on inferior hardware--under Linux than Windows, and also works  
fine on a comparable Mac. Weird! Maybe I'll run that benchmark against  
FF/Win and FF/Linux and see if anything jumps out at me.

> have you tried stripping it your code back to see if a basic version
> runs faster in FF ?

That was what I had on the list to try next, but I didn't know where  
to start. I still can't figure why that would be significantly  
different than just turning all the layers (besides the base layer)  
off...I don't have any pan/drag/mousemove event handlers that run all  
the time...to my knowledge, anyway...

Thanks!

-Matt


>
>
>
>
> On Wed, Jul 9, 2008 at 1:00 AM, Matt Williamson  
> <MatthewDW at gmail.com> wrote:
>> Hi Alexandre,
>> Thanks, but I'm not referring to loading performance, but  
>> interactivity
>> performance. I'm getting about 2 fps when dragging/panning the map,  
>> while I
>> get >15fps in other browsers on the same machine. Should have been  
>> more
>> specific, perhaps.
>> -Matt
>>
>> On Jul 8, 2008, at 8:22 AM, Alexandre Ardhuin wrote:
>>
>> Firefox limits the number of connections per server.
>> Typing "about:config" and filtering with "connection" will show you  
>> the
>> current config of firefox. By default,
>> network.http.max-connections = 24
>> network.http.max-connections-per-server = 8
>> network.http.max-persistent-connections-per-proxy = 4
>> network.http.max-persistent-connections-per-server = 2
>>
>> Use different sub-domains to load images is a common performances.
>>
>> Regards,
>>
>> Alexandre.
>>
>>
>> 2008/7/8 Matt Williamson <MatthewDW at gmail.com>:
>>>
>>> Z,
>>>
>>> Tried with safe mode/no add-ons, and getting pretty much the same
>>> result.
>>>
>>> Perhaps it would help if I were to be a bit more empirical... When I
>>> grab and drag the map, on FF3 I get about 2 frames per second while
>>> the map is moving. Under IE7 on the same machine, at the same  
>>> time, I
>>> get the more expected 15-20 fps or so.
>>>
>>> So, when you pan the map, you get ~10 fps or better? That's about  
>>> what
>>> I would expect, especially given that that's what I get from just
>>> about any other browser.
>>>
>>> Thanks,
>>>
>>> -Matt
>>>
>>>
>>>
>>> On Jul 7, 2008, at 7:20 PM, Zac Spi rks fine for me in FF3 on  
>>> windows...
>>>>
>>>> did you try firefox in safe mode, ie with no add-ons running?
>>>>
>>>> z
>>>>
>>>> On Tue, Jul 8, 2008 at 7:14 AM, Matt Williamson
>>>> <MatthewDW at gmail.com> wrote:
>>>>> Hello list,
>>>>>
>>>>> I wrote a while back about this, but I was having a bit of trouble
>>>>> reliably reproducing it, and I didn't have the page up and  
>>>>> publicly
>>>>> accessible yet...now I have both.
>>>>>
>>>>> The page below works great in Safari 3/Mac, Safari 4DP/Mac, IE7/ 
>>>>> Win,
>>>>> Firefox 2/Mac and Firefox 3/Mac/Linux. But it is dog slow in
>>>>> Firefox 2
>>>>> and Firefox 3 on Windows. Panning/dragging is stuttery to the  
>>>>> point
>>>>> of
>>>>> being nearly unusable, and in some cases even moving the mouse  
>>>>> over
>>>>> the map can stutter, and seems to spin the CPU unnecessarily. This
>>>>> is,
>>>>> for example, on a Core 2 Duo system with plenty of RAM. At first I
>>>>> thought tor layers, but it seems to do
>>>>> mostly
>>>>> the same thing with the vector layers turned off.
>>>>>
>>>>> Any ideas as to what's causing the problem would be extremely
>>>>> appreciated!:
>>>>>
>>>>> http://www.wrh.noaa.gov/pih/firewx/maps.php?area=Central%20Idaho
>>>>>
>>>>> Thanks!
>>>>>
>>>>> -Matt
>>>>>
>>>>> P.S.: Probably unrelated, but I think I also have something wrong
>>>>> with
>>>>> my scales/resolutions or something, because double-clicking the  
>>>>> map
>>>>> would change the center to some place far south of the click (so I
>>>>> disabled double-click)...if anyone notices something wrong that  
>>>>> might
>>>>> cause this, that would be great to know too!
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at openlayers.org
>>>>> http://openlayers.org/mailman/listinfo/users
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Zac Spitzer -
>>>> http://zacster.blogspot.com (My Blog)
>>>> +61 405 847 168
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>
>
>
> -- 
> Zac Spitzer -
> http://zacster.blogspot.com (My Blog)
> +61 405 847 168
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list