blurhash icon indicating copy to clipboard operation
blurhash copied to clipboard

Add a pure Ruby implementation

Open tenderlove opened this issue 3 years ago • 1 comments

Hi,

I ported the C implementation to pure Ruby (the code is not pretty since it's pretty much a straight port from the C code). I don't know how fast this is compared to the C implementation. I did this because I think it would make a good JIT benchmark, especially since we can compare against the C implementation.

The commit doesn't replace the existing C implementation, it just adds an encode_rb function. I don't expect this PR to be merged necessarily, I just wanted to send it and say "hey, there's a pure Ruby version if you want it! 😄"

tenderlove avatar Jan 06 '23 00:01 tenderlove

@Gargron Friendly ping 😄

sandstrom avatar Jul 10 '25 13:07 sandstrom