next node: AcceleratorC,
prev node: AcceleratorC,
up to node: Subsystem Special


AcceleratorF

Signature of AcceleratorF

List of Import References :
See BOOL
See DENOTATION

SIGNATURE AcceleratorF[from, to, quick, slow]

$Date: 2010-09-30 18:24:17 +0200 (Do, 30. Sep 2010) $ ($Revision: 616 $)

-- accelerate execution of function slow if called with identical arguments
-- by supplying a suitable chosen simple function

-- USE THIS STRUCTURE WITH GREAT CARE!!!

-- PARAMETER CONDITION: ALL x. quick(x) === slow(x, x)

  -- Parameter
  SORT from to
  FUN quick: from -> to
  FUN slow: from ** from -> to

  FUN accelerate: from ** from -> to  
  -- accelerate(a,b) = slow(a,b)
  -- if equality can be determined easily, accelerate(a,a) = quick(a)
  -- note, that there is no way to determine whether equality can be
  -- determined easily


next node: AcceleratorC,
prev node: AcceleratorC,
up to node: Subsystem Special