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

move translation population and path collision checking to insert stage #1272

Merged
merged 1 commit into from
Jan 5, 2021
Merged

move translation population and path collision checking to insert stage #1272

merged 1 commit into from
Jan 5, 2021

Conversation

savente93
Copy link
Contributor

PR in response to #1112.

  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Are you doing the PR on the next branch?
  • Have you created/updated the relevant documentation page(s)?

Code changes

I moved the path collision checking and the translation population to the insertion into the library stage. This is to save a few iterations across pages and sections. It did necessitate extra indices for the library, but for aliases and translations, I think that is acceptable since it should be relatively slim in most cases. I have some comments about other possible improvements but I'll add those to the issue discussion itself

components/library/src/library.rs Outdated Show resolved Hide resolved
components/library/src/library.rs Show resolved Hide resolved
components/library/src/library.rs Show resolved Hide resolved
@savente93 savente93 requested a review from Keats January 4, 2021 07:31
@Keats Keats merged commit 369fb40 into getzola:next Jan 5, 2021
@Keats
Copy link
Collaborator

Keats commented Jan 5, 2021

Thanks!

@Keats
Copy link
Collaborator

Keats commented Jan 5, 2021

FYI I just did a commit to DRY it a bit: 6622078

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.

None yet

2 participants