On Sun, 19 Dec 2010 07:46:09 -0500
bearophile <[email protected]> wrote:

> spir:
> 
> > try...catch version time: 387ms
> > pointer version time: 388ms
> > pointer version is about 40650 times faster
> 
> Those numbers look wrong :-)

I thought so. But in the real app a loop that lasted ~ 10s suddenly became 
instantaneous (human perception ;-)
Try it. Sorry, but I'm not inventing the numbers.

> > What do you think?
> 
> Compared to Oracle Java VM the DMD exceptions are very slow. Performance 
> tuning of DMD is left for later, when the main features are all present.

And what if the numbers are correct? Exception handling is explicitely 
recommanded in some docs --as opposed to C-like "manual" hacks.


Denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com

Reply via email to