core.contracts

Make defconstrainedrecord's predicate fast

Details

  • Type: Enhancement Enhancement
  • Status: Resolved Resolved
  • Priority: Trivial Trivial
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Instead of using the slow `clojure.core/type`, use an inlining function calling `instance?`. I have not tested the performance, but it's probably much faster.

  1. fast-predicate.diff
    06/Jun/13 7:48 AM
    2 kB
    Ambrose Bonnaire-Sergeant
  2. fast-predicate2.diff
    17/Jun/13 12:38 AM
    2 kB
    Ambrose Bonnaire-Sergeant

Activity

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: