Clojure

Remove reflection in pprint and cl-format to improve performance

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: Release 1.5
  • Fix Version/s: Release 1.8
  • Component/s: None
  • Labels:
  • Patch:
    Code
  • Approval:
    Ok

Description

There are many occurrences of reflection in the pprint implementation.

By eliminating all of them, I ran one benchmark of pprint'ing a Clojure map that resulted in a 300 Kbyte output. After eliminating reflection, the elapsed time to pprint was reduced by 18% (about 14.0 sec down to about 11.5 sec) on a recent model MacBook Pro.

Patch: clj-1259-2.patch
Screened by: Alex Miller

  1. clj-1259-1.txt
    09/Sep/13 11:36 PM
    11 kB
    Andy Fingerhut
  2. clj-1259-2.patch
    09/Oct/15 8:59 AM
    20 kB
    Alex Miller

Activity

People

Vote (1)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: