-
Notifications
You must be signed in to change notification settings - Fork 6
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
refactor out duplicate code #41
Conversation
@npmccallum I did these changes to factor out any possibilities of |
In SGX we must have By dividing the problem into nicely encapsulated components, it's easy to make the call to |
Re-implement existing test cases with an input array of data, and provide visually more appealing feedback when a test fails so that analysis will be quicker. Signed-off-by: Jarkko Sakkinen <jarkko@profian.com>
Intersections can be sorted out by `unmap()`, so use that instead of having two duplicate implementations for this, and encapsulate `merge()` as a separate pass. This reduces the surface for possible bugs, and improves test coverage at the same time, given that all `map()` tests now test also `unmap()` code. Closes: #40 Signed-off-by: Jarkko Sakkinen <jarkko@profian.com>
Signed-off-by: Jarkko Sakkinen <jarkko@profian.com>
@npmccallum please review |
@npmccallum mmap PR is not anymore dependent on this but please approve this when you can because it is needed for continuation. |
Added snapshot of the Heap to this PR. It can refined from this point forward. |
moved heap to a separate branch which i upstream later on |
No description provided.