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

[WIP] OSX support #377

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

[WIP] OSX support #377

wants to merge 4 commits into from

Conversation

beauby
Copy link
Contributor

@beauby beauby commented Oct 8, 2024

No description provided.

@beauby beauby force-pushed the osx-support branch 3 times, most recently from e986cd4 to 43baeed Compare October 8, 2024 22:36
Copy link
Contributor

@jberdine jberdine left a comment

Choose a reason for hiding this comment

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

Most of this isn't specific to macOS right? It would be better to divide into 2 PRs I think.

modified_files = mutable Vector[];
deleted_files = mutable Vector[];

// FIXME: This is O(n^2).
Copy link
Contributor

Choose a reason for hiding this comment

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

Are the srcs arrays already sorted? A linear traversal of new_srcs seems unavoidable. So perhaps the best that can be done is to sort old_srcs and use a binary search instead of Array.find. Maybe it would be better to also sort new_srcs and then be able to narrow the binary search of old_srcs at each step.

@beauby
Copy link
Contributor Author

beauby commented Oct 9, 2024

Most of this isn't specific to macOS right? It would be better to divide into 2 PRs I think.

That's correct. The aim of this branch is to get OSX support down the line, and I made it a PR for visibility. I'll split self-contained commits out into separate PRs.

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.

2 participants