|
Post by votan on Aug 12, 2009 6:31:30 GMT -5
Carl, do you think you could add a way to precompile projects? Depending on length and complexity of a project, it can take quiet long to compile the project. And with a bunch of simultanous users accessing the same project, serving a page to the user can take very long. For example, I have a small program here, that is just about 300 lines of code. Connecting takes 10 ms (WAN), pagebuilding takes about 47 ms... but serving the document to the user (from sending the request to seeing the page) takes 570 ms. So basically, RB seems to use 500 ms to compile the project and to respond. With only 10 simultanous users, this will already add up to a bunch of seconds a user might have to wait to get a page served. It would be really nice to be able to precompile projects to get a significant performance boost with RB.
BTW... I have another project that has about 4000 lines of code, and compiling this already takes a bunch of seconds to show up the initial screen... once compiled, it responds very fast.. just how it should... all that on dualcore 2.53 GHz machine and gigiabit lan/10mbit upload wan. So RBs performance would really benefit from precompiling...
|
|
|
Post by votan on Aug 14, 2009 8:36:54 GMT -5
Ok... I just did another test to visualize this speed issue even more... I made a simple program consisting of just a single variable operation and one "if then" command. Then multiplied this code to result in 20000 lines of code. I added a link command to it, to allow restarting the app in compiled mode and one html link to restart it in uncompiled mode. Here is the result on a 2core 2.53 GHz machine... (Total time for showing the result.. from initial click to done) initial start (uncompiled): 30 seconds compiled restart: less than 1 second uncompiled start again: 30 seconds compiled restart again: less than 1 second
If anyone want's to try, too, just let me know and I will upload the file somewhere...
Aynway, this shows that there must be something done regarding speed... as most "real" programs probably will consist of more than just a few hundred lines, waiting for showing up the initial page can take VERY long. And being able to precompile the code seems to be the only and best way to achieve ultra fast responding times.
|
|
|
Post by votan on Aug 16, 2009 3:02:00 GMT -5
|
|