[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: what to look for in performance degrade under windows ?
- From: gary ng <garyng2000@...>
- Date: Wed, 20 Jun 2007 05:59:59 -0700 (PDT)
VC8, build as DLL(which I believe is the only way to
have both lua and luasocket work together).
--- David Burgess <email@example.com> wrote:
> Which version of MSVC and how is it linked?
> I am not sure which APIs that python uses for socket
> io but
> luasocket uses the BSD APIs on windows and these are
> On 6/20/07, gary ng <firstname.lastname@example.org> wrote:
> > Hi,
> > I was writing a NBD server(which is essentially
> > stream over tcp/ip). The protocol is very simple:
> A 28
> > byte header indicating either a read or write(I
> > lpack to pack/unpack this header ) + actual data
> > and from server. So a very simple socket based
> > program.
> > I wrote both a lua version and a python version.
> > linux, lua is about 2-3x faster than python, and
> > 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.
> > 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.
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.