misalcedo / tortuga

A CGI and WCGI server for HTTP/1.1
Apache License 2.0
7 stars 0 forks source link

Speed up the WCGI path #118

Closed misalcedo closed 8 months ago

misalcedo commented 8 months ago

Some ideas to test out:

misalcedo commented 8 months ago

I updated the server to generate the wasm and process scripts. Now wasm and process have a single instance per server stored on the server context.

misalcedo commented 8 months ago

Re-using the engine had no discernible difference in performance yet.

misalcedo commented 8 months ago

The notify crate could be used to listen for deletes. Alternatively, I could use glob to list all of the paths that still exist and then delete any paths that no longer exist. Also, could list the cache keys and check if the file it points to still exists; deleting the entry if not.

misalcedo commented 8 months ago

Instead of watching the directory, I will just scan periodically.