From edd at debian.org  Fri Aug  5 01:20:24 2011
From: edd at debian.org (Dirk Eddelbuettel)
Date: Thu, 4 Aug 2011 18:20:24 -0500
Subject: [Rd] slightly speeding up readChar()
In-Reply-To: <590F85D8-4CD2-4182-917F-6E8900A040DB@eva.mpg.de>
References: <BAC8BBAE-B965-4BD7-ABFD-A016AC875223@eva.mpg.de>
	<9DA22EB1-E813-4D5D-91EB-46C1E9E8947C@r-project.org>
	<590F85D8-4CD2-4182-917F-6E8900A040DB@eva.mpg.de>
Message-ID: <20027.10552.641615.124070@max.nulle.part>


On 5 August 2011 at 00:15, Michael Lachmann wrote:
| > I'm not sure it's really worth bothering with such optimizations, on my machine I get
| 
| No it isn't worth it, you're right. Though 100MB is much smaller than my average file size. But you're right, readChar is quite efficient.

When you know the (fixed) structure of the data, the CRAN package mmap can be
a huge winner.

Dirk

-- 
Gauss once played himself in a zero-sum game and won $50.
                      -- #11 at http://www.gaussfacts.com



[Rd] slightly speeding up readChar()
Dirk Eddelbuettel