[Mono-devel-list] Zero Length Arrays

A Rafael D Teixeira rafaelteixeirabr at hotmail.com
Sun Jan 11 12:59:43 EST 2004


>From: Ben Maurer <bmaurer at users.sourceforge.net>
>
>So, today, I realized that there is a VERY simple solution. In
>mono_array_new, if it finds that it will be creating a zero length
>array, it should used a cached zero length array.

But how will we deal with commonly used typed arrays? Will we have to cache 
a per-type zero-length array, or is it possible to reuse a object-typed 
zero-length array?

Just playing devil's advocate,

Fun amazing Ben, and fun everybody

Rafael Teixeira
Brazilian Polymath
Mono Hacker since 16 Jul 2001
MonoBrasil Founding Member - Membro Fundador do MonoBrasil
English Blog: http://monoblog.blogspot.com/
Brazilian Portuguese Blog: http://monoblog.weblogger.terra.com.br/

_________________________________________________________________
MSN Messenger: instale grátis e converse com seus amigos. 
http://messenger.msn.com.br




More information about the Mono-devel-list mailing list