Skip to content

Conversation

zuiderkwast
Copy link
Contributor

@zuiderkwast zuiderkwast commented Jan 13, 2025

The new new hash table is one of the highlights of the upcoming 8.1 release.

  • Improve structure and content of the text
  • Replace ascii art with other art?
  • Decide which benchmarks we want
  • Add benchmark results

Copy link
Member

@madolson madolson left a comment

Choose a reason for hiding this comment

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

Overall I think the content is really good. Is @SoftlyRaining planning on adding more information about benchmark results?

Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
@zuiderkwast zuiderkwast force-pushed the hashtable-blog-post branch from 7741e22 to fccd669 Compare March 28, 2025 12:47
Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
@zuiderkwast zuiderkwast changed the title Blog post about new hash table (WIP) Blog post about new hash table Mar 28, 2025
@zuiderkwast zuiderkwast marked this pull request as ready for review March 28, 2025 14:22
Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
@zuiderkwast zuiderkwast removed the request for review from stockholmux March 28, 2025 15:29
@zuiderkwast
Copy link
Contributor Author

@rjd15372 Do you want to take a look?

Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Comment on lines 206 to 207
better. The zigzag pattern is because of aliasing between the datapoint spacing
and the memory allocator's discrete allocation sizes.
Copy link
Member

Choose a reason for hiding this comment

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

"The zigzag pattern is because of aliasing between the datapoint spacing
and the memory allocator's discrete allocation sizes."

I couldn't understand what you mean with this. Can you describe it in another way to make it more clear?

Copy link
Contributor Author

@zuiderkwast zuiderkwast Mar 28, 2025

Choose a reason for hiding this comment

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

I took this from Rain's issue with the diagrams. :)

It's wasted memory when jemalloc allocates more memory than we need. The sizes are as in this table: http://jemalloc.net/jemalloc.3.html#size_classes

Explaining this is probably not worth it. I'll cut it down to this, ok?

The zigzag pattern is because of unused memory resulting from the memory
allocator's discrete allocation sizes.

Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Copy link
Member

@madolson madolson left a comment

Choose a reason for hiding this comment

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

Pass for grammar, will auto-apply these changes

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Copy link
Member

@madolson madolson left a comment

Choose a reason for hiding this comment

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

I like it.

@zuiderkwast zuiderkwast merged commit 21b964e into valkey-io:main Mar 29, 2025
1 check passed
@zuiderkwast zuiderkwast deleted the hashtable-blog-post branch March 29, 2025 10:38
zuiderkwast added a commit that referenced this pull request Apr 2, 2025
Follow-up of #195 and #227.

Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
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