Skip to content Skip to sidebar Skip to footer

How To Handle Massive Computation On Websites? Web Workers Or Cgi?

I've written a JavaScript-based Website that is able to enter, edit and solve Nonograms. As you may know, solving a nonogram is an NP-complete problem. My first attempt was pure (s

Solution 1:

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.


Post a Comment for "How To Handle Massive Computation On Websites? Web Workers Or Cgi?"