React-autosuggest: Causing delay in rendering huge list of results. (over 500 suggestions)

Created on 15 May 2017  路  6Comments  路  Source: moroshko/react-autosuggest

Until results are rendered, user cannot type any further letters. How do i handle suggestion matches over 500 values?

Most helpful comment

I am often having this keyboard input value lag issue with as little 100 results. Its not as noticable as the 850,000 items above, but it's definitely a performance problem. When typing a vague string like "the" (which will be matched by lots of things in my list), the rendering of the suggestions is slow, and the input box text does not update until finishing rendering. It would be nice if the event to update the input value did not wait until react finished rendering. They should be independent.

Here is some debugging in Chrome devtools:

image

All 6 comments

Could you create a Codepen that demonstrates the issue?

I have the same issue with a large data (about 850,000 items). Compiling has never finished with it.

http://codepen.io/nikhilmutkekar/pen/dWjMJd Here is the issue. Type on 'C' and holds up a little before it renders list of suggestions.

It's normal, even you are using react-autosuggest or any other library. Browser takes its time to render large lists. Although there are some techniques in order to keep a fast rendering time that are not still used in this repo, but I think they are coming soon -> #330

@autohub7 IMO 850,000 is too much data for the browser even you are not rendering it. You should add some pagination or something similar if you can.

I am often having this keyboard input value lag issue with as little 100 results. Its not as noticable as the 850,000 items above, but it's definitely a performance problem. When typing a vague string like "the" (which will be matched by lots of things in my list), the rendering of the suggestions is slow, and the input box text does not update until finishing rendering. It would be nice if the event to update the input value did not wait until react finished rendering. They should be independent.

Here is some debugging in Chrome devtools:

image

I鈥檓 currently dealing with 1,639 items in my suggestions and @moroshko鈥檚 suggestion to slice, https://github.com/moroshko/react-autosuggest/issues/292#issuecomment-261177321, improved performance a lot.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

approots picture approots  路  14Comments

acthp picture acthp  路  10Comments

jchapelle picture jchapelle  路  10Comments

kromit picture kromit  路  12Comments

casertap picture casertap  路  10Comments