Skip to content

Conversation

@alielkhateeb
Copy link

@alielkhateeb alielkhateeb commented Feb 4, 2026

Summary

This PR should only be an improvement to the performance of pull/push, as well as some readability improvements.

Related Linear tickets, Github issues, and Community forum posts

Ligo-128

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@CLAassistant
Copy link

CLAassistant commented Feb 4, 2026

CLA assistant check
All committers have signed the CLA.

@alielkhateeb alielkhateeb changed the title Ligo-128: Improve performance of source control methods refactor: Improve performance of source control methods Feb 4, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 4 files

@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@alielkhateeb alielkhateeb force-pushed the LIGO-128-improve-performance-of-source-control-methods branch from 145db7b to 2da3d34 Compare February 4, 2026 11:36
outOfScopeWF = outOfScopeWF.filter(
(wf) => !wfLocalVersionIds.some((local) => local.id === wf.id),
);
outOfScopeWF = outOfScopeWF.filter((wf) => !wfLocalIds.has(wf.id));
Copy link
Author

Choose a reason for hiding this comment

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

The idea here is that Set#has() is O(1) compared to some which is O(n)

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