Hi :) On Wed 01 Sep 2010 09:04, [email protected] (Ludovic Courtès) writes:
> PS: I’m reviving the thread because I’m consistently seeing a 10% > performance degradation in the SRFI-1 rewrite in Scheme, which I’m > not comfortable with (not that “higher-level languages are > inefficient” song again!). So, my thought is that 10% slower is actually pretty good. Of course without debug hooks things are going to be faster still, but would you care at all about this if the Scheme version happened to be as fast as the C version? But OK. I don't want it to be default, though. How do you feel about --no-debug, as we have already? We should default to the equivalent of --debug. Cheers, Andy Ps. I was going to say we should improve compilation instead, but the hot loop of fold is already pretty tight. 19 (local-ref 5) ;; `list1' 21 (br-if-not-null :L104) ;; -> 28 at srfi/srfi-1.scm:408:8 25 (local-ref 4) ;; `knil' 27 (return) 28 (new-frame) at srfi/srfi-1.scm:410:15 29 (local-ref 0) ;; `kons' 31 (local-ref 5) ;; `list1' 33 (car) at srfi/srfi-1.scm:410:21 34 (local-ref 4) ;; `knil' 36 (call 2) at srfi/srfi-1.scm:410:15 38 (local-ref 5) ;; `list1' 40 (cdr) at srfi/srfi-1.scm:410:39 41 (local-set 5) ;; `list1' 43 (local-set 4) ;; `knil' 45 (br :L105) ;; -> 19 at srfi/srfi-1.scm:410:12 -- http://wingolog.org/
