Skip to content

Improve data picker performance#1179

Merged
rmn-snpk merged 24 commits into
mainfrom
feat/improve-data-picker-perfomance
Aug 27, 2025
Merged

Improve data picker performance#1179
rmn-snpk merged 24 commits into
mainfrom
feat/improve-data-picker-perfomance

Conversation

@rmn-snpk

@rmn-snpk rmn-snpk commented Aug 21, 2025

Copy link
Copy Markdown

Just added memorization and reduced item big array size in the data picker

Part of OPS-2438.

@linear

linear Bot commented Aug 21, 2025

Copy link
Copy Markdown

Roman Snapko added 4 commits August 21, 2025 14:41
# Conflicts:
#	packages/engine/src/lib/services/progress.service.ts
#	packages/engine/test/services/progress.service.test.ts
#	packages/server/shared/src/lib/cache/redis-wrapper.ts
#	packages/server/shared/src/lib/request-oversize-body-handler.ts
#	packages/server/shared/test/request-oversize-body-handler.test.ts
@sonarqubecloud

Copy link
Copy Markdown

@rmn-snpk
rmn-snpk marked this pull request as ready for review August 27, 2025 11:41
Copilot AI review requested due to automatic review settings August 27, 2025 11:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves performance in the data picker component by optimizing how large arrays are processed and rendered. The changes reduce computational overhead through memoization and implement limits on data slicing to prevent excessive UI operations.

  • Added memoization to code editor value processing to prevent unnecessary recalculations
  • Introduced constants to limit array slicing operations and prevent performance degradation with large datasets
  • Replaced magic numbers with named constants for better maintainability

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
code-editor.tsx Added useMemo to optimize value processing and prevent unnecessary re-renders
data-selector-utils.ts Introduced slice limits and replaced magic numbers with constants to optimize array handling

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@rmn-snpk
rmn-snpk requested a review from cezudas August 27, 2025 11:48
@rmn-snpk
rmn-snpk merged commit 02830dc into main Aug 27, 2025
19 checks passed
@rmn-snpk
rmn-snpk deleted the feat/improve-data-picker-perfomance branch August 27, 2025 12:08
rmn-snpk pushed a commit that referenced this pull request Aug 28, 2025
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.

4 participants