Clojure

Performance drop in PersistentHashMap.valAt(...) in v.1.4 -- Util.hasheq(...) ?

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: Release 1.4
  • Fix Version/s: Release 1.5
  • Component/s: None
  • Labels:
  • Environment:
    Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
    Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
  • Patch:
    Code
  • Approval:
    Ok

Description

It seems there is a 30-40% performance degradation of PersistentHashMap.valAt(...) in Clojure 1.4.
Possibly due to references to new CPU-hungry implementation of Util.hasheq(...).

I have created a demo project with more details and some profiling information here:
https://github.com/oshyshko/clj-perf

  1. caching-hasheq-v3.diff
    03/Dec/12 11:30 AM
    10 kB
    Christophe Grand
  1. clj_13.png
    136 kB
    21/May/12 10:06 PM
  2. clj_14.png
    140 kB
    21/May/12 10:06 PM

Activity

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: