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

SALTO-6991: create element ID full name only if needed #6862

Merged

Conversation

ori-moisis
Copy link
Contributor

@ori-moisis ori-moisis commented Nov 28, 2024

Before this change, the string with the full name of the element ID was always created even if it was never used Changed this to create the string the first time it is needed.


Additional context for reviewer
Tested this with a dummy adapter fetch that created a very large number of detailed changes.
This change reduced peak memory consumption from ~7.9GB to 6.9GB

Based on #6866 and #6880


Release Notes:
Core:

  • Improvements to memory consumption when working with large numbers of changes

User Notifications:
None

@ori-moisis ori-moisis requested a review from a team November 28, 2024 14:35
@ori-moisis ori-moisis force-pushed the perf/elem_id_skip_creating_fullname branch 2 times, most recently from 46a5f6e to 4d516e5 Compare December 2, 2024 12:09
@coveralls
Copy link

coveralls commented Dec 2, 2024

Coverage Status

coverage: 93.813%. remained the same
when pulling b51fa67 on ori-moisis:perf/elem_id_skip_creating_fullname
into 71b5571 on salto-io:main.

@ori-moisis ori-moisis force-pushed the perf/elem_id_skip_creating_fullname branch from 4d516e5 to 55b57e1 Compare December 2, 2024 15:27
Before this change, the string with the full name of the element ID was always created even if it was never used
Changed this to create the string the first time it is needed.
@ori-moisis ori-moisis force-pushed the perf/elem_id_skip_creating_fullname branch from 55b57e1 to b51fa67 Compare December 3, 2024 12:10
@ori-moisis ori-moisis enabled auto-merge (squash) December 3, 2024 12:15
@ori-moisis ori-moisis merged commit 1958121 into salto-io:main Dec 3, 2024
61 checks passed
@ori-moisis ori-moisis deleted the perf/elem_id_skip_creating_fullname branch December 3, 2024 14:25
ori-moisis added a commit that referenced this pull request Dec 3, 2024
ori-moisis added a commit that referenced this pull request Dec 3, 2024
ori-moisis added a commit to ori-moisis/salto that referenced this pull request Dec 4, 2024
ori-moisis added a commit that referenced this pull request Dec 10, 2024
ori-moisis added a commit that referenced this pull request Dec 10, 2024
Reverts #6888 (re-introducing #6862)

Before this change, the string with the full name of the element ID was always created even if it was never used Changed this to create the string the first time it is needed.
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.

3 participants