{"action":"created","issue":{"url":"https://api.github.com/repos/natesilva/jayschema/issues/53","labels_url":"https://api.github.com/repos/natesilva/jayschema/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/natesilva/jayschema/issues/53/comments","events_url":"https://api.github.com/repos/natesilva/jayschema/issues/53/events","html_url":"https://github.com/natesilva/jayschema/pull/53","id":79234061,"number":53,"title":"cache dynamic require lookups","user":{"login":"Matt-Esch","id":1058839,"avatar_url":"https://avatars.githubusercontent.com/u/1058839?v=3","gravatar_id":"","url":"https://api.github.com/users/Matt-Esch","html_url":"https://github.com/Matt-Esch","followers_url":"https://api.github.com/users/Matt-Esch/followers","following_url":"https://api.github.com/users/Matt-Esch/following{/other_user}","gists_url":"https://api.github.com/users/Matt-Esch/gists{/gist_id}","starred_url":"https://api.github.com/users/Matt-Esch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matt-Esch/subscriptions","organizations_url":"https://api.github.com/users/Matt-Esch/orgs","repos_url":"https://api.github.com/users/Matt-Esch/repos","events_url":"https://api.github.com/users/Matt-Esch/events{/privacy}","received_events_url":"https://api.github.com/users/Matt-Esch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-22T01:30:51Z","updated_at":"2015-06-15T21:04:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/natesilva/jayschema/pulls/53","html_url":"https://github.com/natesilva/jayschema/pull/53","diff_url":"https://github.com/natesilva/jayschema/pull/53.diff","patch_url":"https://github.com/natesilva/jayschema/pull/53.patch"},"body":"The require algorithm in node is heavy. Every time you call it, it resolves the require path for you. Here I am caching the require statements to prevent this performance penalty, but really all dynamic requires should be removed."},"comment":{"url":"https://api.github.com/repos/natesilva/jayschema/issues/comments/112211700","html_url":"https://github.com/natesilva/jayschema/pull/53#issuecomment-112211700","issue_url":"https://api.github.com/repos/natesilva/jayschema/issues/53","id":112211700,"user":{"login":"natesilva","id":160467,"avatar_url":"https://avatars.githubusercontent.com/u/160467?v=3","gravatar_id":"","url":"https://api.github.com/users/natesilva","html_url":"https://github.com/natesilva","followers_url":"https://api.github.com/users/natesilva/followers","following_url":"https://api.github.com/users/natesilva/following{/other_user}","gists_url":"https://api.github.com/users/natesilva/gists{/gist_id}","starred_url":"https://api.github.com/users/natesilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natesilva/subscriptions","organizations_url":"https://api.github.com/users/natesilva/orgs","repos_url":"https://api.github.com/users/natesilva/repos","events_url":"https://api.github.com/users/natesilva/events{/privacy}","received_events_url":"https://api.github.com/users/natesilva/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T21:04:08Z","updated_at":"2015-06-15T21:04:08Z","body":"As far as I can tell these `require`s should already be cached in`VALIDATOR_FUNCTIONS`."}}