huafu / ember-google-map

An Ember addon to include a google-map Ember friendly component in your apps.
http://huafu.github.io/#/ember?name=ember-google-map
MIT License
87 stars 34 forks source link

Fix Performance Issues with Components #47

Open srsgores opened 9 years ago

srsgores commented 9 years ago

This may end up being solved by glimmer, but notice the wait and performance issues on our recent hackathon app.

The page takes upwards of 15 seconds to render, just because Ember has to create hundreds of components.

Perhaps a fix would be to not allow an option to not use components for each marker, and instead, use a simple Ember.Object.

Thoughts?

huafu commented 9 years ago

First of all, sorry to answer that late.

I have planned to do a partial re-write once I'll have some free time, also to make this addon fully compatible with ember-2.0. Your idea is a good one, but more like providing an option to not use views and components out of the google-map one.

There was a reason why there is a view and component for each, but I'll try to find a workaround. Anyway, I am living in thailand, and even in Bangkok I have 0 event showing up, so I believe the slow load is due to my 300k connection :p. How can I get 100 markers or so to see what's exactly happening?