1. Translator code far slower
- Posted by lists at wordit.com
Jan 22, 2002
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
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