dylan-lang/opendylan — Issue #82: Limited type slowing down program
Author: glidesurfer
Created: 2011-12-11 23:00:52+00:00
State: open

Hi everyone,

I experienced a strange thing which I'd call a bug:

In the following code[1] I tried to use limited types to increase (!!) performance but using limited(\, of: \) actually slows the code down!

Here's what time say on a P4 2.8GHz:

[rosario@gs-desktop dylan]$ time ~/Open-Dylan/bin/sieve 5000000
348513

real 0m3.961s
user 0m3.420s
sys 0m0.063s

Without a limited type[2] (using only) I get:

[rosario@gs-desktop dylan]$ time ~/Open-Dylan/bin/sieve 5000000
348513

real 0m1.875s
user 0m1.560s
sys 0m0.077s

[1] http://paste.lisp.org/+2PJZ/1
[2] http://paste.lisp.org/+2PJZ