Skip to content

Conversation

mjp41
Copy link
Member

@mjp41 mjp41 commented Jun 8, 2023

This PR adds a new type of Range that can allow a range to be disabled dynamically.

This is used to disable some backend caching if the heap is very small, such as in the OpenEnclave case.

mjp41 added 5 commits June 6, 2023 06:54
This range allows for a contained range to be disabled at runtime.
This allows for thread local caching to be disabled if the initial fixed
size heap is below a threshold.
// and uses the ancestor functions to bypass the OptionalRange if the flag
// has been set.
template<typename ParentRange>
class Type : public ContainsParent<Pipe<ParentRange, OptionalRange>>
Copy link
Contributor

Choose a reason for hiding this comment

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

I've nothing to add here except to quote Hackers:

It's so neat and clean.
Doesn't look like a hacker wrote it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Now I need to watch "Hackers" ;)

@mjp41 mjp41 mentioned this pull request Jun 9, 2023
5 tasks
@mjp41 mjp41 requested a review from nwf-msr June 20, 2023 12:51
@mjp41 mjp41 merged commit ce489cf into microsoft:main Jun 20, 2023
@mjp41 mjp41 deleted the conditional_range branch June 20, 2023 16:00
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