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

Rebase to make it work with Rust stable 1.41 #126

Merged
merged 4 commits into from
Mar 20, 2020

Conversation

calavera
Copy link
Contributor

@S-Coyle since it looks like you're picking up maintenance work of this crate, I was wonder if you could merge this change. I've incorporated @povilasb's PR #123 here fixing the code formatting that's making his PR fail. I've also removed the mention to plugin_as_library that makes it not compile in Rust stable.

posborne and others added 3 commits March 19, 2020 09:14
These changes aim to make it so that calls to the public API
operate over the cache using a single Instant of time rather than
calling Instant::now() at several unique points in time during the
synchronous execution of the function.

The former execution model lead to potential bugs, notably in functions
like entry() as brought up in maidsafe#122, especially on targets with less processing
power or under heavy load.

This also reduces the number of system calls that need to be made which
may improve performance for some use cases.

Signed-off-by: Paul Osborne <[email protected]>
Under a heavy CPU load, time can elapse between insert/get_mut on an entry
which results in a panic.

Signed-off-by: Paul Osborne <[email protected]>
@calavera calavera requested a review from a team as a code owner March 19, 2020 16:17
@povilasb
Copy link
Contributor

Can't take the credit for your work guys ;d

@calavera
Copy link
Contributor Author

oh sorry, I mean @posborne XD

Copy link
Contributor

@S-Coyle S-Coyle left a comment

Choose a reason for hiding this comment

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

👍

@S-Coyle S-Coyle merged commit 9fdd337 into maidsafe:master Mar 20, 2020
@calavera calavera deleted the production_readiness branch March 20, 2020 17:05
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.

4 participants