{"action":"created","issue":{"url":"https://api.github.com/repos/trptcolin/reply/issues/179","repository_url":"https://api.github.com/repos/trptcolin/reply","labels_url":"https://api.github.com/repos/trptcolin/reply/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/trptcolin/reply/issues/179/comments","events_url":"https://api.github.com/repos/trptcolin/reply/issues/179/events","html_url":"https://github.com/trptcolin/reply/pull/179","id":296037382,"number":179,"title":"Defer the loading of reply.parsing namespace for faster startup","user":{"login":"alexander-yakushev","id":468477,"avatar_url":"https://avatars1.githubusercontent.com/u/468477?v=4","gravatar_id":"","url":"https://api.github.com/users/alexander-yakushev","html_url":"https://github.com/alexander-yakushev","followers_url":"https://api.github.com/users/alexander-yakushev/followers","following_url":"https://api.github.com/users/alexander-yakushev/following{/other_user}","gists_url":"https://api.github.com/users/alexander-yakushev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander-yakushev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander-yakushev/subscriptions","organizations_url":"https://api.github.com/users/alexander-yakushev/orgs","repos_url":"https://api.github.com/users/alexander-yakushev/repos","events_url":"https://api.github.com/users/alexander-yakushev/events{/privacy}","received_events_url":"https://api.github.com/users/alexander-yakushev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-09T22:53:57Z","updated_at":"2018-05-19T20:32:07Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/trptcolin/reply/pulls/179","html_url":"https://github.com/trptcolin/reply/pull/179","diff_url":"https://github.com/trptcolin/reply/pull/179.diff","patch_url":"https://github.com/trptcolin/reply/pull/179.patch"},"body":"While I was working on the [blogpost about long Clojure start times](http://clojure-goes-fast.com/blog/clojures-slow-start/) I noticed that REPLy (which is used by Leiningen and Boot both) eats up a considerable percentage of total load time.\r\n\r\nIn particular, `reply.parsing` namespace, which transitively loads sjacket and other libraries, stood very distinctively. I saw it as an opportunity to defer the loading of this namespace until the user enters their very first form into the REPL. This pull request makes `reply.parsing` be loaded in background to wait less.\r\n\r\nAfter the patch, I got a consistent ~2 seconds improvement when loading `reply.main`. E.g.:\r\n\r\n```clojure\r\n;; 0.3.8\r\nuser=> (time (require 'reply.main))\r\n\"Elapsed time: 4082.037985 msecs\"\r\n\r\n;; Patched\r\nuser=> (time (require 'reply.main))\r\n\"Elapsed time: 2170.414554 msecs\"\r\n```"},"comment":{"url":"https://api.github.com/repos/trptcolin/reply/issues/comments/390430786","html_url":"https://github.com/trptcolin/reply/pull/179#issuecomment-390430786","issue_url":"https://api.github.com/repos/trptcolin/reply/issues/179","id":390430786,"user":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars0.githubusercontent.com/u/103882?v=4","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"created_at":"2018-05-19T20:32:07Z","updated_at":"2018-05-19T20:32:07Z","author_association":"CONTRIBUTOR","body":"Nicely done! 👍 "}}
{"actor":{"display_login":"bbatsov"}}