lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I used the assoicate luavs.bat file to build the
DLL/EXE, not sure if it has debug enabled, I would
assume no as the VC8 run time used isn't the debug
version.

--- Anders Bergh <anders1@gmail.com> wrote:

> Have you made sure you aren't compiling LuaJIT with
> VS Debug settings,
> such as "Edit and continue"?
> 
> On 6/20/07, gary ng <garyng2000@yahoo.com> wrote:
> > Hi,
> >
> > I was writing a NBD server(which is essentially
> file
> > stream over tcp/ip). The protocol is very simple:
> A 28
> > byte header indicating either a read or write(I
> use
> > lpack to pack/unpack this header ) + actual data
> to
> > and from server. So a very simple socket based
> > program.
> >
> > I wrote both a lua version and a python version.
> Under
> > linux, lua is about 2-3x faster than python, and
> about
> > 50% of a C implementation.
> >
> > However, when I put the same code to run under
> > windows, the python version is 2x as fast as lua.
> The
> > python is about 50% of the C implementation.
> >
> > I have also tried to illiminate the file io(so
> > effectively echo back) and the result is still the
> > same.
> >
> > What would cause such a strange behaviour ?
> >
> > Both lua(luajit) and the python code are compiled
> > using MSVC on Windows and gcc under linux.
> >
> > thanks for any hint in advance.
> >
> > regards
> >
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Get the Yahoo! toolbar and be alerted to new email
> wherever you're surfing.
> >
>
http://new.toolbar.yahoo.com/toolbar/features/mail/index.php
> >
> 
> 
> -- 
> Anders
> 



       
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC