Skip to content

feat(core): add new dart allocation interfaces #311

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

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

imrn99
Copy link
Collaborator

@imrn99 imrn99 commented Mar 28, 2025

Description

should be rebased

Scope: core

Type of change: feat

Content description: see commits

Necessary follow-up

There are a few different things possible for improvements before integrating some form of CRDT:

  • remove old interfaces
  • make block size a parameter of CMaps and only allow aligned block allocations
  • build the dart blocks during the allocation and add them to a transactional queue that the threads can pop from

@codecov-commenter
Copy link

codecov-commenter commented Mar 28, 2025

Codecov Report

Attention: Patch coverage is 94.00545% with 22 lines in your changes missing coverage. Please review.

Project coverage is 85.40%. Comparing base (77cac3b) to head (8d0e174).

Files with missing lines Patch % Lines
honeycomb-core/src/cmap/components/darts.rs 92.30% 8 Missing ⚠️
honeycomb-core/src/cmap/dim2/structure.rs 91.25% 7 Missing ⚠️
honeycomb-core/src/cmap/dim3/structure.rs 91.02% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #311      +/-   ##
==========================================
+ Coverage   84.81%   85.40%   +0.59%     
==========================================
  Files          68       69       +1     
  Lines        9942    10219     +277     
==========================================
+ Hits         8432     8728     +296     
+ Misses       1510     1491      -19     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@cedricchevalier19 cedricchevalier19 left a comment

Choose a reason for hiding this comment

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

This is a significant change; can we discuss it more this week?
To clarify what this PR is aiming at in the long run,

@@ -22,6 +22,11 @@ impl UnusedDarts {
self.0.extend((0..len).map(|_| TVar::new(false)));
}

/// Extend internal storage capacity using the passed value for new items
pub fn extend_from_val(&mut self, len: usize, val: bool) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
pub fn extend_from_val(&mut self, len: usize, val: bool) {
pub fn extend_with(&mut self, len: usize, val: bool) {

Not sure about the semantic you want to follow, but this looks closer to what people are doing externally.

Copy link
Collaborator Author

@imrn99 imrn99 Apr 1, 2025

Choose a reason for hiding this comment

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

yeah, I have no strong opinion on the naming, doing what others do is probably best

I'll need to properly update everything in a single commit if I want to rebase this tho

@imrn99
Copy link
Collaborator Author

imrn99 commented Apr 1, 2025

can we discuss it more this week?

sure, I also started to look into CRDTs so maybe this can tie things in.

@imrn99 imrn99 marked this pull request as draft April 4, 2025 16:17
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.

3 participants