[M3devel] Text structure bites again...

Dragiša Durić dragisha at m3w.org
Sun Mar 30 20:18:45 CEST 2008


On Sun, 2008-03-30 at 18:22 +0000, Jay wrote:
> Personally I'd something more like Windows -- every type and function
> is doubled, and one set is implemented on top of the others as long as
> they are reasonably expensive otherwise. And then tend to do
> everything in Unicode. An array of bytes is an array of bytes. An
> array of "characters" is usually WCHAR.

  And this would mean what exactly?

>  
> 10meg default stack!
> Geez that's crazy. How are you going to create many threads like that?
> On Windows the default stacks are usually 1meg or 256k, but it is
> customizable.

  No problem, of course. You set stack on shell level, for example.

  ulimit -s 64 is what I do when I expect many threads and when I know
actual depth would be nothing special in every one of them. It makes
64kbyte default.

>  
>  - Jay
> 
> 
> 
> ______________________________________________________________________
> 
> > From: dragisha at m3w.org
> > To: m3devel at elegosoft.com
> > Date: Sun, 30 Mar 2008 19:42:42 +0200
> > Subject: [M3devel] Text structure bites again...
> > 
> > Imagine string made by 50,000 & operations.
> > 
> > After that, we have very unbalanced tree of TextCat.T's.
> > 
> > Imagine get_chars() invocation by unsuspecting code.
> > 
> > 10MB of default stack goes crash.
> > -- 
> > Dragiša Durić <dragisha at m3w.org>
> > 
> 
-- 
Dragiša Durić <dragisha at m3w.org>




More information about the M3devel mailing list