Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Grow unbounded blocks #100

Merged
4 commits merged into from
Sep 27, 2018
Merged

Grow unbounded blocks #100

4 commits merged into from
Sep 27, 2018

Conversation

kleimkuhler
Copy link
Contributor

This addresses the initial implementation of dynamically growing the number of slots in Box.

The optimizations to build on top of this will be embedding slots inside Block similar to how Node embeds tower in crossbeam-skiplist. This would remove the indirection of separately allocating slots on the heap.

Remove `slot_count` from `Block`
Currently the drop test fails for list. In the test debug output, I am
seeing rougly ~2x the number of drops vs what is expected.

Replication:
$ cargo test --test list normal::drops
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

I only have two minor comments that apply to both read() and write().

src/flavors/list.rs Outdated Show resolved Hide resolved
src/flavors/list.rs Outdated Show resolved Hide resolved
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@ghost ghost merged commit 6bbd267 into crossbeam-rs:master Sep 27, 2018
@kleimkuhler kleimkuhler deleted the grow-unbounded-blocks branch October 2, 2018 02:12
@kleimkuhler kleimkuhler mentioned this pull request Oct 3, 2018
3 tasks
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant