This is a performance fork of blurhash.net.
Only the encoder has been tuned. The decoder is still untouched. (I'll tune it later...)
See Benchmarks.
x2.5 faster in real time, over x10 faster in CPU time.
- vector: The fastest version. Not compatible with the original version.
- basisprovider: Just reduced calling Math.Cos().
- master: The original version.
I have a website TwiGaTen. (source code) It crawls Twitter to collect tweets with image and image itself. It only collects ":thumb"(150x150px) images but the number is about 3~4 million/day. And I use 9x9 blurhash to make them as clear as possible.
However, original blurhash.net was heavy for my usage. It doubled the CPU load of my server...
This list does not contain the projects with names ending in .Test
as they are the test projects for the ones listed here.
- Blurhash.Core The core algorithm of blurhash. For maximum compatibility this is a .NET-Standard project.
- Blurhash-System.Drawing.Blurhash
Bridge-Library to use Blurhash with the
System.Drawing.dll
namespace of the .NET-Framework. This is only available in Windows projects as it uses GDI+ - Blurhash-System.Drawing.Common Bridge-Library to use Blurhash with the System.Drawing.Common NuGet-Library in DotNetStandard
- Blurhash.ImageSharp Bridge-Library to use Blurhash with ImageSharp