Hacker News new | ask | show | jobs
by kentonv 1126 days ago
> Its impossible to resize images or hash passwords on Cloudflare workers: the CPU time limit is too low.

You're thinking of years ago when the CPU time limit was 50ms. These days the limit is 30 seconds, plenty of time for these tasks.

2 comments

Thanks for your reply.

I hit the CPU time limit a few months ago. I was paying for unbound and my account default was on. I guess I also hit the memory limit (128MB).

Perhaps we should reply on: https://community.cloudflare.com/t/long-running-webcrypto-ap... and https://community.cloudflare.com/t/options-for-password-hash.... Though I'm not sure if it will work, certain algorithms might take more than 128MB.

Whilst you're here, when can we expect D1 to be distributed instead of a single instance, and when will D1's API to be stabilised?

Thanks :)

Edit: I just found https://blog.cloudflare.com/d1-turning-it-up-to-11/ so I'll read that first