Skip to content

Conversation

@Swiiz
Copy link

@Swiiz Swiiz commented Sep 3, 2025

DenseSlotMap store all values contiguously, these proposed methods provide direct access to the underlying Vec data as slices, allowing for more efficient operations that can be performed on contiguous memory blocks. This is particularly useful for FFI (Foreign Function Interface).

Open issues: #114 and #131.

@Jasper-Bekkers
Copy link

Ill also link #81 which we've been using as a patch in the past 4 years to achieve this goal as well.

@jagprog5
Copy link

Missing functionality. Created PR on @Swiiz 's branch: Swiiz#1

add keys_values_as_mut_slices method for DenseSlotMap
@jagprog5 jagprog5 mentioned this pull request Oct 31, 2025
@orlp
Copy link
Owner

orlp commented Dec 5, 2025

Superseded by #140.

@orlp orlp closed this Dec 5, 2025
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.

4 participants