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

New socket server startup proactively loads too much code, slowing boot time

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects versions: Release 1.8
    • Fix versions: Release 1.11
    • Labels:
    • Approval:
      Vetted
    • Patch:
      Code

      Description

      In the new socket server code, clojure.core.server is proactively loaded (regardless of whether servers are in the config), which will also load clojure.edn and clojure.string.

      Approach: Delay loading of this code until the first server config is found. This improves startup time when not using the socket server about 0.05 s.

      Patch: clj-1891.patch

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alexmiller Alex Miller
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: