Uploaded image for project: 'Clojure'
  1. CLJ-1277

Speed up printing of time instants by adding type hints

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Completed
    • Affects versions: Release 1.5
    • Fix versions: Release 1.8
    • Labels:
    • Approval:
      Ok
    • Patch:
      Code

      Description

      There are several occurrences of reflection in instant.clj that slow down the printing of time instants.

      Clojure Google group conversation link: https://mail.google.com/mail/u/0/?shva=1#label/clojure/1419e1e6f6cc5b3d

      The addition of a few type hints is enough to speed the printing of time instants by a factor of about 3 to 4.5, in a few small benchmarks.

      Patch: clj-1277-1.txt
      Screened by: Alex Miller

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jafingerhut Andy Fingerhut
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: