woltapp/blurhash

Performance Issue?

arpowers opened this issue · 1 comments

hey there,
I have the latest blurhash working, but there appears to be a performance issue (or Im doing something wrong...)

Code is simple:

const pixels = bh.decode('U01.]S~q%NRjxut7ofayjrxuxuWBt7xut7Rj', width, height)

However, it is taking 1.8 seconds to run that and generate the pixels for the canvas.. of course this negates the purpose of blurhash in the first place... what am i missing?

Found the guidelines about scaling up the canvas and not generating at full size...