Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: switch lodash.isEqual to fast-equals.deepEqual to improve performance #4438

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

igorbrasileiro
Copy link
Contributor

Reasons for making this change

partially fixes #4291

Checklist

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests. I've run npx nx run-many --target=build --exclude=@rjsf/docs && npm run test:update to update snapshots, if needed.
    • I've updated docs if needed
    • I've updated the changelog with a description of the PR
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

CHANGELOG.md Outdated
Comment on lines 19 to 28
# 5.25.0

## @rjsf/utils

- Switched uses of `lodash.isEqual()` to `fast-equals.deepEqual()` in many utility functions.

## @rjsf/validator-ajv8

- Switched uses of `lodash.isEqual()` to `fast-equals.deepEqual()` at precompiledValidator.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5.24.0 has yet to be release so you can move these underneath that section

@@ -1,4 +1,4 @@
import isEqual from 'lodash/isEqual';
import { deepEqual } from 'fast-equals';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you switch these to all use the @rjsf/utils deepEquals() first? And then in a second PR switch deepEquals to use this function?

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.

performance issue related to lodash/isEqual function
2 participants