Hi,
I am thinking about the possibility of a FastCGI application around
V8. However, I am not sure whether this is reasonably realizable:
1) what actions can be done _without_ a context, e.g. prior to
entering FCGI_Accept() loop?
2) is it possible to "cache" compiled scripts so these can be executed
each time FastCGI application is called?
My main idea can be (briefly) described in the following pseudocode:
int main() {
read_and_compile_libraries("lib1.js", "lib2.js", "mysql.js", ...);
while (FCGI_Accept()) {
create_and_enter_v8_context();
run_cached_libraries();
run_main_script();
delete_v8_context();
}
}
It is also easily possible to wrap _everyting_ done in standard main()
routine into a FCGI loop (including reading and compiling), but if I
am not mistaken, one loses all FastCGI advantages in this approach.
Thanks a lot for response,
Ondrej Zara
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---