[Mono-devel-list] The first (attempt to checkin) managed collation patch

Atsushi Eno atsushi at ximian.com
Fri Jul 22 01:06:20 EDT 2005


Hi,

Ben Maurer wrote:
> On Fri, 2005-07-22 at 12:53 +0900, Atsushi Eno wrote:
> 
>>+	class UnmanagedMemoryStream : Stream {
>> 		unsafe byte *base_address;
>>-		int size;
>>-		int position;
>>+		long size;
>>+		long position;
> 
> 
> It's a bit more efficient so store those as void*. It uses less memory
> on x86 boxes. Also, the 32 bit opcodes are shorter (ie, in size += 1,
> you can do that with a single inc rather than having to handle
> overflow).

Is that change impressive? Doesn't that change introduce extra opcodes
in almost all other members (say, Position, Read(), Seek()) instead?

Atsushi Eno



More information about the Mono-devel-list mailing list