News for hackers. Stuff that matters.
Re:My free book "Rust Projects – Write a Redis Clone" is out by andy_ppp on Monday October 21, 2024 @11:01AM (#41904932)
So, just out of interest how close does this get to the performance of redis? It’s interesting to see a highly optimised production product compared to a presumably more trivial implementation I can read in a book. Still this might be a great way to learn rust!
Re:My free book "Rust Projects – Write a Redis Clone" is out by thedigicat on Monday October 21, 2024 @12:51PM (#41905999)
Thanks! So, I didn't consider performances at all, as it's not the goal of the project, but it would be interesting to have a look. Good idea!
Re:My free book "Rust Projects – Write a Redis Clone" is out by andy_ppp on Monday October 21, 2024 @12:54PM (#41906030)
Yes it's definitely not about winning, if you can get say 75% of Redis performance with simpler and memory safe code I'd say that is a big win and great advertising for the book! And maybe some examples of how performance can be improved/optimisations made also improves the book!
Re:My free book "Rust Projects – Write a Redis Clone" is out by reconditerose on Tuesday October 22, 2024 @01:00AM (#41911329)
You might be able to get near 100% of Redis performance without a lot of tuning. Redis has a lot of overhead to make it a production ready system like performance counters, safety checking, and conditionals for features like replication/clustering/etc which slows it down.

Hell, you might even be able to use a concurrent hash map implementation and show multi-threaded performance much better than Redis :).