macchina-io / macchina.io

macchina.io EDGE is a powerful C++ and JavaScript SDK for edge devices, multi-service IoT gateways and connected embedded systems.
https://macchina.io
GNU General Public License v3.0
512 stars 152 forks source link

JSS and JSSP script pooling #3

Open obiltschnig opened 9 years ago

obiltschnig commented 9 years ago

In the current implementation JavaScript servlets and server pages are compiled whenever they are requested. From a performance perspective this is unacceptable. There should be a pooling mechanism that enables reuse of compiled scripts.

obiltschnig commented 9 years ago

Servlet is now compiled only on first load. However, there now can only be a single request to a servlet at a given time (processing of servlets is serialized, protected by mutex). This is fine for embedded web servers that don't have to serve many concurrent users, so we'll postpone this issue.