React-jsonschema-form: Perf waste

Created on 29 Nov 2016  路  4Comments  路  Source: rjsf-team/react-jsonschema-form

Prerequisites

  • [x] I have read the documentation;
  • [x] In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.

Description

When I am working with object field with multiple sub-fields, then updating a field,
Example: Change Chunk to Chuck test blah blah record blah blah
it creates a lot of waste rerender.

If the form has more fields, and this cost will be much higher.

Steps to Reproduce

  1. Install react-addons-perf and import Perf from 'react-addons-perf'
  2. In playground, select tab Ordering
  3. Start Profiling.
  4. Change First name from Chunk to Chuck test blah blah record blah blah.
  5. Stop Profiling and see the results.

Expected behavior

So reduce these waste costs.

Actual behavior

Raise a lot of waste calculations.

Version

0.40.0

enhancement help wanted performance

Most helpful comment

Could you please test latest master now #480 has landed? I bet it drastically improves the situation you describe here.

All 4 comments

This is indeed a shame. Would you want to work investigating this?

Could you please test latest master now #480 has landed? I bet it drastically improves the situation you describe here.

Not test yet, but it seems the PR could solve the problem @n1k0

489 is gonna drastically improve perfs as well methinks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ebower12 picture ebower12  路  3Comments

marinav picture marinav  路  3Comments

jabaren picture jabaren  路  3Comments

MedinaGitHub picture MedinaGitHub  路  3Comments

epicfaace picture epicfaace  路  3Comments