且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何处理网站上的大量计算?网络工作者还是CGI?

更新时间:2021-12-29 10:00:41

也许您可以增加一些延迟,然后再将消息发布到 WebWorkers 。如果将过程分解为足够小的功能,则可能可以使页面保持响应状态,尽管解决该过程将花费更长的时间。

Maybe you could add some delay before you post messages to the WebWorkers. If the process is split up in to small enough functions, it may be possible to keep the page responsive, though it will take a lot longer to solve.