Skip to content

DCache implementation#39

Merged
ninaiiad merged 13 commits intomainfrom
ng/dcache
Mar 10, 2026
Merged

DCache implementation#39
ninaiiad merged 13 commits intomainfrom
ng/dcache

Conversation

@ninaiiad
Copy link
Contributor

@ninaiiad ninaiiad commented Mar 5, 2026

@ninaiiad ninaiiad requested a review from a team March 5, 2026 16:28
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

Copy link
Contributor

@louisponet louisponet left a comment

Choose a reason for hiding this comment

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

what happens if someone was reading the data while another one overwrites it? Do we assume that will just not happen? I think that's ok but also quite dangerous.

devin-ai-integration[bot]

This comment was marked as resolved.

Copy link
Contributor

@gd-0 gd-0 left a comment

Choose a reason for hiding this comment

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

can you write a bench for this and compare it vs crossbeam?

devin-ai-integration[bot]

This comment was marked as resolved.

@ninaiiad ninaiiad changed the title DataStore / DCache implementation DCache implementation Mar 8, 2026
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

base.add(offset_ix + Self::OFFSET),
buf.as_mut_ptr(),
r.len,
);

Choose a reason for hiding this comment

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

what prevents the slice of the buffer that is being read from being written concurrently?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nothing, the reader will find out whether or not this happened after the function has completed

Copy link
Contributor

@ltitanb ltitanb left a comment

Choose a reason for hiding this comment

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

lgtm

@ninaiiad ninaiiad merged commit a42ef4b into main Mar 10, 2026
1 check passed
@ninaiiad ninaiiad deleted the ng/dcache branch March 11, 2026 09:21
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.

5 participants