gfodor / p2pcf

Low cost, low effort P2P WebRTC serverless signalling using Cloudflare Workers
MIT License
964 stars 53 forks source link

perf: use process-fast #5

Closed ThaUnknown closed 2 years ago

ThaUnknown commented 2 years ago

this is a very quick and easy fix for major performance bottlenecks caused by the process until #1 is resolved, as it uses queueMicrotask instead of setTimeout

gfodor commented 2 years ago

Thanks! ❤️

ThaUnknown commented 2 years ago

@gfodor please note, while this is a minor performance patch, it doesn't fix the underlying issue, and if any1 imports this module into their project, this polyfill wont be used!!!