1. Translator code far slower

I translated my directory traverser to C. Unfortunately, the translated
code (using Borland) is far slower than the interpreted code. Why is
this?

Interpreter: 37 seconds

Translator code (Borland): 53 seconds

I ran it several times.

Any ideas how to speed things up?
I don't understand how compiled C code can be slower.

Thanks,

Marcus

new topic     » topic index » view message » categorize

2. Re: Translator code far slower

Marcus writes:
> I translated my directory traverser to C. 
> Unfortunately, the translated code (using Borland) 
> is far slower than the interpreted code. Why is this?

Most of the time is spent in the C run-time routine
that's used to implement Euphoria's dir() function.
The interpreter is built with Watcom C, and I've noticed
that the Watcom routine that the interpreter calls
is significantly faster than the equivalent Borland routine. 

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu