Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Perfomance #648

Open
piernik opened this issue Feb 11, 2015 · 14 comments
Open

Perfomance #648

piernik opened this issue Feb 11, 2015 · 14 comments

Comments

@piernik
Copy link

piernik commented Feb 11, 2015

Your script is great, but it's rather heavy.
One select with only 5 options can add even 50 watchers.
Maybe there is something to optimize? Using ng-if instead of ng-show? One time bindings?

@dimirc
Copy link
Contributor

dimirc commented Feb 13, 2015

What version of the library are you using?

@piernik
Copy link
Author

piernik commented Feb 13, 2015

v0.9.6

@Bana0615
Copy link

+1

@gerardp
Copy link

gerardp commented Feb 20, 2015

+1 one time binding is the key, meanwhile you can use https://github.com/tadeuszwojcik/angular-once

@piernik
Copy link
Author

piernik commented Feb 20, 2015

One time bindings are available in angular 1.3 {{::oneTime}}

@Bana0615
Copy link

there is no where to use the one time bindings with ui-select, at least nowhere i can see. I love the way it functions but it is very heavy with all the watchers

@jonathan-thorpe
Copy link

The number of watchers is a big killer with ui-select. I have a page with about 10 ui-select directives each with about 5 items in each. This is contributing to a watcher count in the thousands and the application performance is very poor.

The ability to do one-time bindings to reduce this count, as well as a straightforward way to disable animations would make a huge difference to ui-select.

@louwie17
Copy link

+1

2 similar comments
@upmauro
Copy link
Contributor

upmauro commented Jul 30, 2015

+1

@ghost
Copy link

ghost commented Aug 10, 2015

+1

@cdjackson
Copy link
Contributor

See #1096 / #1108

@Jacq
Copy link

Jacq commented Aug 10, 2015

Thanks for the refs to that issues

@ssljivic
Copy link

+1

@shprink
Copy link

shprink commented Mar 17, 2016

Before and after opening the UI select:

image

OMG!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests