{"action":"opened","issue":{"url":"https://api.github.com/repos/docopt/DocOpt.jl/issues/13","repository_url":"https://api.github.com/repos/docopt/DocOpt.jl","labels_url":"https://api.github.com/repos/docopt/DocOpt.jl/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/docopt/DocOpt.jl/issues/13/comments","events_url":"https://api.github.com/repos/docopt/DocOpt.jl/issues/13/events","html_url":"https://github.com/docopt/DocOpt.jl/issues/13","id":166733215,"number":13,"title":"Not precompiling?","user":{"login":"jeff-regier","id":8953355,"avatar_url":"https://avatars.githubusercontent.com/u/8953355?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff-regier","html_url":"https://github.com/jeff-regier","followers_url":"https://api.github.com/users/jeff-regier/followers","following_url":"https://api.github.com/users/jeff-regier/following{/other_user}","gists_url":"https://api.github.com/users/jeff-regier/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff-regier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff-regier/subscriptions","organizations_url":"https://api.github.com/users/jeff-regier/orgs","repos_url":"https://api.github.com/users/jeff-regier/repos","events_url":"https://api.github.com/users/jeff-regier/events{/privacy}","received_events_url":"https://api.github.com/users/jeff-regier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-21T04:04:47Z","updated_at":"2016-07-21T04:04:47Z","closed_at":null,"body":"My first call to `docopt` takes about 4000 times longer than my second call to it. (4 seconds vs 0.001 second.) What's happening? Is Julia compiling the function during the first call, rather than pre-compiling the library? (I'm using both Julia 0.4 and Julia 0.5.)\r\n\r\n```\r\njulia> using DocOpt\r\n\r\njulia> DOC = \"Usage: my_program\"\r\n\"Usage: my_program\"\r\n\r\njulia> @time     args = docopt(DOC)\r\n  4.113140 seconds (1.88 M allocations: 80.758 MB, 12.67% gc time)\r\nDict{AbstractString,Any} with 0 entries\r\n\r\njulia> @time     args = docopt(DOC)\r\n  0.001893 seconds (400 allocations: 18.016 KB)\r\nDict{AbstractString,Any} with 0 entries\r\n\r\njulia> isdefined(Base, :__precompile__)\r\ntrue\r\n```"}}
{"actor":{"display_login":"jeff-regier"}}