Hi, Am Sonntag, den 28.01.2007, 10:20 +0100 schrieb Jeroen Frijters: > Roman Kennke wrote: > > I don't know if the FileInputStream should attempt to use a direct > > buffer. I guess it could be better in the case when a VM supports > > efficient access to it (see above). In other cases it should not be > > slower, so we should probably try to use direct buffers there (and in > > other places like the InputStreamReader). > > Just as a data point, this is not universally true. On IKVM, using a direct buffer would result in much less efficient i/o. Ok. I suspected it wouldn't be black and white ;-) Maybe the VM interface should provide a method for creating a bytebuffer, and the VM can then return whatever is fastest. /Roman