Graylog2 / graylog2-server

Free and open log management
https://www.graylog.org
Other
7.33k stars 1.06k forks source link

Text input fields on pages using wizard is delayed #6881

Closed bernd closed 4 years ago

bernd commented 4 years ago

Expected Behavior

Entering text into a text field inside a wizard component should be fast.

Current Behavior

When editing text in wizard components (e.g. creating content pack, creating event definition) the text is added with a delay. This makes entering text feel very sluggish. If I hold a single key it takes some time until the characters appear.

The delay doesn't show up when creating an AWS input which is also using a wizard component.

This wasn't the case in 3.1.x.

Steps to Reproduce (for bugs)

  1. Open event definitions page
  2. Create new event definition
  3. Enter some text in the title input
  4. Try to do it very fast
  5. Hold one key

Your Environment

edmundoa commented 4 years ago

I was testing in the Create Event Definitions page and there are a couple things that caught my attention:

To me the biggest-impact optimization we can make is to optimize when we call styled and avoid doing it when is not necessary. We can of course also avoid doing some re-renders when are not necessary, but that would need a more fine grained analysis and tuning.

mpfz0r commented 4 years ago

If you want to a more severe example, try and edit a GROK pattern. Each keypress takes about 0.7 seconds

edmundoa commented 4 years ago

Fixed in https://github.com/Graylog2/graylog2-server/pull/6906