Re: [Rd] serialize() takes too long when serializing to a raw vector

From: Hin-Tak Leung <hin-tak.leung_at_cimr.cam.ac.uk>
Date: Thu 25 Jan 2007 - 15:25:43 GMT

Ashish Kulkarni wrote:
> Hin-Tak Leung wrote:

>> It might be interesting to know get some details on your hardware.
>>

>
> It's a P4 2.66GHz with a standard Intel motherboard having 1GB RAM.
>
<snipped>

That figures - I am on an opteron 2.2GHz on x86_64 linux with the same amount memory, and running R in 32-bit mode; so my numbers are a bit lower than yours.

> Well, the timings certainly differ quite a bit. What kind of
> hardware do you have? I suspect that most of the delay may be
> caused by memory reallocation since the size of the output
> raw array is not known up front. I would imagine that WINE
> would use the system memory allocator, not the one used by
> the windows kernel.
<snipped>

Yes, as others has replied about realloc(). Wine's msvcrt is probaby some sort of wrapper around glibc's, and differs from how genuine windows works in that regard.

HTL



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Jan 26 02:39:03 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 25 Jan 2007 - 16:31:14 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.