-
Notifications
You must be signed in to change notification settings - Fork 155
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 the enclaves into the same build directory #3775
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
This is a cheap win on build performance. In the future it would be nice to:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I am not sure how to really verify there aren't any nuances we are missing... for example different enclaves building the same crate with different features. I suspect this kind of stuff should be fine, and I suppose we'll find out rather quickly if not.
Right now what I'm doing "locally" is
Then cleaning and building each one individually and seeing how they compare binary, hopefully there's no date info in there |
None are the same
I'll go to |
first run on main
Second run
I'll do some thinking, clearly there is a timestamp in those binaries |
Looking into this more, most importantly is the enclave signing material, as it needs to be consistent in order for the css and signature to be repeatable. The below is from the current
|
Ok after finding and fixing, mobilecoinfoundation/sgx#455 I'm able to get the same binary outputs for the enclaves "consolidated" is the change from this PR
|
c115cb1
to
3544587
Compare
Moving the enclaves into the same build directory reduces compilation times on this developer's machine from 7m45s to 6m31s. Which is ~15% improvement. It also reduces the build directory from 76GiB to 71GiB.
3544587
to
d5e580f
Compare
Moving the enclaves into the same build directory reduces compilation
times on this developer's machine from 7m45s to 6m31s. Which is ~15%
improvement. It also reduces the build directory from 76GiB to 71GiB.