chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-janitors] #744: spock: implement non-trivial example and te


From: Chicken Trac
Subject: Re: [Chicken-janitors] #744: spock: implement non-trivial example and test on all platforms
Date: Tue, 04 Sep 2012 20:18:05 -0000

#744: spock: implement non-trivial example and test on all platforms
-------------------------+--------------------------------------------------
  Reporter:  felix       |       Owner:  felix   
      Type:  task        |      Status:  assigned
  Priority:  major       |   Milestone:          
 Component:  extensions  |     Version:  4.7.x   
Resolution:              |    Keywords:  spock   
-------------------------+--------------------------------------------------

Comment(by felix):

 Marc Feeley suggests replacing calls to `SPOCK.count` with code that
 inlines the test:

 {{{
 By the way, I think performance would improve if you changed the calls:

 function foo(k,a1,a2,a3)
 {
   SPOCK.check(arguments);
   ...
 }

 to

 function foo(k,a1,a2,a3)
 {
   if (--SPOCK.check_count =3D=3D=3D 0) SPOCK.check(foo,k,a1,a2,a3);
   ...
 }

 This will avoid using "arguments", which causes most JavaScript VMs to =
 not optimize the code, and it will poll intermittently.
 }}}

 This should be benchmarked. Also, the performance difference between the
 throw and nothrow variants must be measured.

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/744#comment:2>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]