Skip to content
Prev 42346 / 63424 Next

serialize/unserialize vector improvement

On 22/01/2012 13:56, Prof Brian Ripley wrote:
This does all seem to depend on the quality of the platform's XDR 
implementation: for example, a similar example runs twice as fast on 
x86_64 Mac OS X as on i386 R on the same machine.

On all the (little-endian) platforms I tried not using XDR 
(serialize(xdr = FALSE)) made an improvement of around 3x.  On some a 
version of Spiegel's patch helped equally and on others it made a much 
smaller improvement.  In the best-case scenario (i386 OS X) there was a 
10x improvement.  But that is only going to be noticeable in rare 
applications.

A version of Spiegel's idea (with changes confined to just one file) 
will appear in R-devel shortly.