Run, compile and execute JavaScript for Scientific Computing and Data Visualization TOTALLY TOTALLY TOTALLY in your BROWSER! An open source scientific computing environment for JavaScript TOTALLY in your browser, matrix operations with GPU acceleration, TeX support, data visualization and symbolic computation.
currently, web worker scripts are requested and destroyed every time user clicks Run button, which is time consuming, and cannot be used offline. this pr introduces singleton class for workers, elevating worker scripts requests to page loading.
performance improvement
before:
plenty of time is wasted while requesting, parsing and compiling scripts, it takes unreasonably ~5secs to run a simple script.
after:
the running time is reduced to ~0.5secs.
workers will still be destroyed when user terminate running, but re-requests are sent immediately, following run time shouldn't be affected.
currently, web worker scripts are requested and destroyed every time user clicks Run button, which is time consuming, and cannot be used offline. this pr introduces singleton class for workers, elevating worker scripts requests to page loading.
performance improvement
before:
plenty of time is wasted while requesting, parsing and compiling scripts, it takes unreasonably ~5secs to run a simple script.
after:
the running time is reduced to ~0.5secs.
workers will still be destroyed when user terminate running, but re-requests are sent immediately, following run time shouldn't be affected.