[Mono-devel-list] First CIL Regex performance result

Ben Maurer bmaurer at users.sourceforge.net
Sun Feb 29 15:09:47 EST 2004


On Sun, 2004-02-29 at 14:59, Eric Durand Tremblay wrote:
> >Another optimization might be to use pointers in the generated code, so
> >instead of using the indexer property to fetch the values, you could
> >keep a pointer to the string.
> >
> >See what mcs generates for:
> >
> >	fixed (char c = &my_string){
> >	}
> >
> >Miguel
> >
> In order to do this, CILMachineBase,  the base class of any Machine, 
> must contain some pointer.  Hence, it must be in unsafe mode.  Actually 
> System.dll is'nt compiled with the --unsafe flag of mcs
> 
> I can do an Hack on my makefile but... I don't know if there is some 
> conterpart in compiling System.dll with --unsafe

Take a look at the build system documentation in build/.

Adding the --unsafe flag to the system assembly should be fine. At the
very least, I have no complaint.

-- ben




More information about the Mono-devel-list mailing list