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

JohnMurga Wrote:

Juergen Wrote:
Would be interesting to measure it. But I guess it will still be a lot faster even when the sql bindings are loaded dynamically.

I am not entirely sure ...

Actually 1ms is on a now common machine with 2GHz is about 2million CPU cycles. That is an awful lot of cycles to spend for a few thousand relocations. The Linux dynamic loader isn't that slow (actually it is quite fast). I did a short test and compiled a lsqulite3.so with the newest libsqlite (3.5.7) compiled in statically.
With the following test:

Code:
require"lsqlite3"
db = sqlite3.open('test.db')
os.exit(0)

It takes about 6ms to complete (an empty test.db exists afterward and I checked that indeed the library has been loaded successfully). Compared with the 4ms it takes to complete "lua -e "os.exit(0)" this is a 2ms overhead. (Of course everything with hot caches).
So main factor of the huge startup difference is UPX. On the machine I'm currently sitting, it takes about 210ms to start murgaLua packed compared with 40ms unpacked. But there is still a difference compared with 6ms.

JohnMurga Wrote:
Things that work and I have chosen to incorporate, yes ...
But most of the XML api is home grown as I didn't find something that did what I wanted.

There is also Michal Sweets mxml library which is also small and fast and it shouldn't be hard to write a binding if not already done.

JohnMurga Wrote:
That'll allow me to fine tune the build options and hopefully improve things.

Do you want to use selective optimization levels for some files?

Juergen

03-25-2008 05:55 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: