Skip to content

Slow when typing into fields #100

@bfabio

Description

@bfabio

The editor is slow when typing into fields. I suspect it can be improved debouncing the keys, because as of now validate() gets triggered more than necessary, but that's not the whole story.

I tried with a simple test: 15 keys pressed in ~1sec. The reference is my terminal emulator which has no input lag:

Terminal

terminal

Live site at https://publiccode-editor.developers.italia.it

complete

Development with validate() disabled

validate

Development with validate() disabled and rc-collapse removed

no-panels

As you can see the slowest version is the deployed one, but my local version with validate() disabled (it just returns) is slow as well. I suspect rc-collapse (and possibly redux-form) is slowing things down, but my React-fu is not great.

Granted I'm using a CPU from 10 years ago, but it's noticeable even on newer ones.

Metadata

Metadata

Assignees

Labels

needs-triageWhen a bug cannot be correctly reproducedperformancequestionFurther information is requested

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions