Skip to content

Conversation

Apolo-ADSK
Copy link

The primary fix redefines the hash table to use block coordinates (point / blockSize) instead of individual points, enabling true block-level sparsity and significantly reducing memory usage for sparse 3D grids. Additionally, it corrects memory pool allocation logic, ensuring consistent and safe handling in both thread-safe and non-thread-safe paths, and removes unnecessary error logging for robustness. Bit operations now properly compute local offsets within 8x8x8 blocks, fixing incorrect bit positioning. These changes enhance performance, prevent data corruption, and align the implementation with the intended sparse representation, while retaining the existing BitBlock structure. Note that the documentation still incorrectly references a 32x32x32 block size, which may need future clarification. (edited)

@massimim massimim self-requested a review October 8, 2025 18:12
@massimim
Copy link
Collaborator

massimim commented Oct 8, 2025

Thank you @Apolo-ADSK!

Copy link
Author

@Apolo-ADSK Apolo-ADSK left a comment

Choose a reason for hiding this comment

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

reviewed

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.

2 participants