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

2007-01-25 Thread Hin-Tak Leung
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. > That figures - I am on an opteron 2.2GHz on x86_64 linux with the same amount memory, and running R in

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

2007-01-25 Thread Duncan Murdoch
On 1/25/2007 6:32 AM, Ashish Kulkarni wrote: > Hello, > > R version 2.4.1 (2006-12-18) > i386-pc-mingw32 > > Calling serialize() with a NULL connection serializes it to a raw vector. > However, when the object to be serialized is large, it takes a very long time: > >> system.time( serialize(ma

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

2007-01-25 Thread Luke Tierney
There was an error in the buffer allocation code that caused realloc to be called far more often than needed; on systems where realloc is slow this will cause problems. Will be fixed shortly in R-devel and R-patched. Best, luke On Thu, 25 Jan 2007, Ashish Kulkarni wrote: > Hin-Tak Leung wrote:

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

2007-01-25 Thread Peter Dalgaard
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. > > >> On my box, linux native seems to be a little slower than >> your quick.serialize time

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

2007-01-25 Thread Ashish Kulkarni
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. > On my box, linux native seems to be a little slower than > your quick.serialize times: > > > system.time( serialize(matrix(0, 100

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

2007-01-25 Thread Hin-Tak Leung
Ashish Kulkarni wrote: > Hello, > > R version 2.4.1 (2006-12-18) > i386-pc-mingw32 > > Calling serialize() with a NULL connection serializes it to a raw vector. > However, when the object to be serialized is large, it takes a very long time: > >> system.time( serialize(matrix(0, 1000, 1000), N

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

2007-01-25 Thread Ashish Kulkarni
Hello, R version 2.4.1 (2006-12-18) i386-pc-mingw32 Calling serialize() with a NULL connection serializes it to a raw vector. However, when the object to be serialized is large, it takes a very long time: > system.time( serialize(matrix(0, 1000, 1000), NULL) ) [1] 38.25 40.73 81.54NANA