Skip to content

Conversation

@farmdawgnation
Copy link

There are times autogrow isn't wanted and times the current autogrow implementation in Selectize.js causes serious performance issues. We had a page that was taking 40 seconds to Selectize around 1700 select boxes, and traced the hotspot back to the autogrow code in Selectize. With autogrow disabled, we were able to Selectize all of those boxes in around 2 seconds.

Autogrow is an incredibly expensive operation when you're selectizing a
large number of nodes (1000+). On such a page, disabling autogrow
dropped selectize time from ~ 40s to ~ 2s.
@carlosdp
Copy link

👍 I needed this so I pulled down @farmdawgnation 's branch. Works great!

@brianreavis
Copy link
Member

This should be fixed by #243.

@farmdawgnation
Copy link
Author

Is disabling autogrow not a useful feature in its own right?

@carlosdp
Copy link

I agree, disabling autoGrow entirely is definitely a useful feature.

@nickhudkins
Copy link

👍 Agreed that disabling autoGrow is useful (unless measureString could get even more performant)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants