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

Optimize Phase1. #1289

Merged
merged 1 commit into from
Sep 25, 2020
Merged

Optimize Phase1. #1289

merged 1 commit into from
Sep 25, 2020

Conversation

porcuquine
Copy link
Collaborator

@porcuquine porcuquine commented Sep 25, 2020

This implements Sealing optimizations but needs a little more cleanup.

@dignifiedquire An early step in this was simplification of the previous sealing (an intentional regression to facilitate moving forward). Now that we have decided to retain previous behavior and make the optimizations (initially) opt-in, some work is required to restore the previous behavior. I started in on this, but it's incomplete, as you will see.

If you have some time and the will to do it, you could reenable the previous behavior. The setting-based selection is implemented, but the generate_labels code path now calls the simplified, intermediate code. Instead, it should call the previous code — which is deleted in this PR's first commit. Once that is restored, this work will be almost done.

  • Restore previous sealing behavior as default.
  • Document settings and how to invoke new sealing in order to maximize performance.

std::slice::from_raw_parts_mut((*self.bufs.get()).as_mut_ptr(), 2)
}

// TODO: is this actually needed?
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not currently used. It was split into the start and finish portions and split across layer-transition boundaries. I think it remains useful documentation of intent. It could probably be refactored into a call to start then finish, which would serve that purpose even better.

@porcuquine porcuquine merged commit 24cd455 into master Sep 25, 2020
@porcuquine porcuquine deleted the opt/sdr-phase1 branch September 25, 2020 22:03
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