ucdavis / wayfinding

jQuery plugin for interactive svg maps
100 stars 58 forks source link

Performance improvement #35

Open chrissy25 opened 8 years ago

chrissy25 commented 8 years ago

Hi,

for Chrome and Firefox the library is working fine, but for IE I have some performace problems, especially during the initial load of the map, this takes very long and the IE will freeze for some time.

I would like to know what does the library do in the initial load? What is the most time consuming operation? I would like to have a look into the code to check if it could be improved, but wanted to cross check first, if you already know what the most time consuming parts are :)

jraller commented 8 years ago

There is a way to generate the map traversal in advance and cache that which speeds up the load process greatly. We haven't documented that part well yet, but are using it in production.

On Wed, Nov 18, 2015 at 3:40 AM chrissy25 notifications@github.com wrote:

Hi,

for Chrome and Firefox the library is working fine, but for IE I have some performace problems, especially during the initial load of the map, this takes very long and the IE will freeze for some time.

I would like to know what does the library do in the initial load? What is the most time consuming operation? I would like to have a look into the code to check if it could be improved, but wanted to cross check first, if you already know what the most time consuming parts are :)

— Reply to this email directly or view it on GitHub https://github.com/ucdavis/wayfinding/issues/35.

chrissy25 commented 8 years ago

Could you describe me how to use it or give me a hint on this? We would like to use it for relativly big maps and the browser which is used most is the Internet Explorer for us ... so we need to improve the performance a little bit^^

jraller commented 8 years ago

The https://github.com/ucdavis/wayfinding/blob/master/tasks/datastores.js file can be used to pre parse the maps, and in the test folder there are examples of this in use https://github.com/ucdavis/wayfinding/blob/master/test/datastore-test.js

On Thu, Nov 19, 2015 at 12:13 PM chrissy25 notifications@github.com wrote:

Could you describe me how to use it or give me a hint on this? We would like to use it for relativly big maps and the browser which is used most is the Internet Explorer for us ... so we need to improve the performance a little bit^^

— Reply to this email directly or view it on GitHub https://github.com/ucdavis/wayfinding/issues/35#issuecomment-158184238.