News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
murgaLua CGI %ENV
Author Message
Juergen
Member
***


Posts: 81
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
RE: murgaLua CGI %ENV

mikshaw Wrote:
I have a belief that a person can be too picky about web server performance if that server is on a personal machine and does not have much traffic. When you consider the fact that most people's machines are typically loaded with a lot of waste simply to run a desktop, and those same people often run their servers on a graphical system, the overhead of the gui crap they run greatly outweighs the performance difference between Lua and murgaLua.

I run a local server using murgaLua (still compressed) and its response is instant. If I were to run that same server on a ubuntu or windows system I wouldn't be surprised if Lua proper actually had lower performance than murgaLua does on my DSL/Slackware box.
That's just speculation, of course, but it's just to express my belief that a lot of people seem to put extra emphasis on slim applications while at the same time they are running fat operating systems.

Don't overestimate the desktop overhead. The biggest overhead is memory wise. But if everything is done right (there is still a lot of software out there that does ridiculus things, like waking up every few 100 us to check someting which could be better done using the right mechanisms), there shouldn't be that much overhead, except for the memory usage. The most overhead on the desktop, which I experience on my machines, is when I browse and hit a web site which shows a dozen or more flash animations. Unfortunately that can even max out a fast machine.

And yes, if you write something with a web GUI that spawns off a murgaLua CGI once in a while, you will hardly observe a speed problem. But if you use it for a site which is used by a few users concurrently and some web pages call multible CGI scripts, 100ms startup overhead leads pretty fast to big trouble.

On the other hand, while UPX packing makes murgaLua much smaller (and hides the real size), this benefit only matters when you have very limited space on your storage medium. In any other case it is very counter productive, because it will cost you a lot of memory if multiple copies of murgaLua run concurrently, because page sharing and demand paging obviously doesn't work with UPX compressed binaries.
So if you have say 5 instances of murgaLua running, the difference is (roughly estimated for the dynamic binary) more than 7Mb in memory consumption.

Juergen

04-15-2008 02:27 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
murgaLua CGI %ENV - dvw86 - 03-23-2008, 06:42 AM
RE: murgaLua CGI %ENV - Juergen - 03-23-2008, 08:30 AM
RE: murgaLua CGI %ENV - dvw86 - 03-23-2008, 09:25 AM
RE: murgaLua CGI %ENV - Juergen - 03-23-2008, 09:48 AM
RE: murgaLua CGI %ENV - dvw86 - 03-23-2008, 10:40 AM
RE: murgaLua CGI %ENV - JohnMurga - 03-23-2008, 08:17 PM
RE: murgaLua CGI %ENV - dvw86 - 03-24-2008, 03:39 AM
RE: murgaLua CGI %ENV - JohnMurga - 03-24-2008, 04:04 AM
RE: murgaLua CGI %ENV - dvw86 - 03-24-2008, 06:29 AM
RE: murgaLua CGI %ENV - asafp - 03-24-2008, 06:55 AM
RE: murgaLua CGI %ENV - Juergen - 03-24-2008, 06:57 AM
RE: murgaLua CGI %ENV - JohnMurga - 03-24-2008, 07:11 AM
RE: murgaLua CGI %ENV - Juergen - 03-25-2008, 05:55 AM
RE: murgaLua CGI %ENV - mikshaw - 04-12-2008, 12:51 PM
RE: murgaLua CGI %ENV - JohnMurga - 04-14-2008, 03:36 AM
RE: murgaLua CGI %ENV - Juergen - 04-15-2008, 01:30 AM
RE: murgaLua CGI %ENV - JohnMurga - 04-15-2008, 07:28 AM
RE: murgaLua CGI %ENV - dvw86 - 05-20-2012, 02:45 AM
RE: murgaLua CGI %ENV - JohnMurga - 05-28-2012, 04:51 AM
RE: murgaLua CGI %ENV - jpjacobs - 05-28-2012, 07:35 AM
RE: murgaLua CGI %ENV - dvw86 - 05-29-2012, 01:55 AM
RE: murgaLua CGI %ENV - JohnMurga - 05-30-2012, 08:52 PM
RE: murgaLua CGI %ENV - dvw86 - 06-02-2012, 12:27 PM
RE: murgaLua CGI %ENV - dvw86 - 06-02-2012, 12:50 PM
RE: murgaLua CGI %ENV - JohnMurga - 06-02-2012, 04:46 PM
RE: murgaLua CGI %ENV - dvw86 - 06-03-2012, 04:48 AM
RE: murgaLua CGI %ENV - dvw86 - 06-03-2012, 05:13 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: