{"action":"created","issue":{"url":"https://api.github.com/repos/erichs/composure/issues/14","labels_url":"https://api.github.com/repos/erichs/composure/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/erichs/composure/issues/14/comments","events_url":"https://api.github.com/repos/erichs/composure/issues/14/events","html_url":"https://github.com/erichs/composure/issues/14","id":70283107,"number":14,"title":"Slow glossary command","user":{"login":"N4M3Z","id":2804910,"avatar_url":"https://avatars.githubusercontent.com/u/2804910?v=3","gravatar_id":"","url":"https://api.github.com/users/N4M3Z","html_url":"https://github.com/N4M3Z","followers_url":"https://api.github.com/users/N4M3Z/followers","following_url":"https://api.github.com/users/N4M3Z/following{/other_user}","gists_url":"https://api.github.com/users/N4M3Z/gists{/gist_id}","starred_url":"https://api.github.com/users/N4M3Z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/N4M3Z/subscriptions","organizations_url":"https://api.github.com/users/N4M3Z/orgs","repos_url":"https://api.github.com/users/N4M3Z/repos","events_url":"https://api.github.com/users/N4M3Z/events{/privacy}","received_events_url":"https://api.github.com/users/N4M3Z/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-23T02:13:29Z","updated_at":"2015-04-23T14:20:15Z","closed_at":null,"body":"Running glossary command seems very slow on my system (zsh 5.0.7 x86_64-apple-darwin14.0.0). I only have one user defined function. Is this expected?\r\n```\r\ncite                                                                  creates one or more meta keywords for use in your functions\r\ndraft                                                                 wraps command from history into a new function, default is last\r\n                                                                      command\r\nglossary                                                              displays help summary for all functions, or summary for a group of\r\n                                                                      functions\r\nmetafor                                                               prints function metadata associated with keyword\r\nping.google                                                           Test connection via Google DNS (8.8.8.8)\r\nreference                                                             displays apidoc help for a specific function\r\nrevise                                                                loads function into editor for revision\r\nwrite                                                                 writes one or more composed function definitions to stdout\r\n15.5386480000s elapsed\r\n```"},"comment":{"url":"https://api.github.com/repos/erichs/composure/issues/comments/95602596","html_url":"https://github.com/erichs/composure/issues/14#issuecomment-95602596","issue_url":"https://api.github.com/repos/erichs/composure/issues/14","id":95602596,"user":{"login":"erichs","id":513523,"avatar_url":"https://avatars.githubusercontent.com/u/513523?v=3","gravatar_id":"","url":"https://api.github.com/users/erichs","html_url":"https://github.com/erichs","followers_url":"https://api.github.com/users/erichs/followers","following_url":"https://api.github.com/users/erichs/following{/other_user}","gists_url":"https://api.github.com/users/erichs/gists{/gist_id}","starred_url":"https://api.github.com/users/erichs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erichs/subscriptions","organizations_url":"https://api.github.com/users/erichs/orgs","repos_url":"https://api.github.com/users/erichs/repos","events_url":"https://api.github.com/users/erichs/events{/privacy}","received_events_url":"https://api.github.com/users/erichs/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T14:20:15Z","updated_at":"2015-04-23T14:20:15Z","body":"@N4M3Z: yikes! so, frameworks like ohmyzsh and tools like rvm add a *lot* of shell functions, which will slow `glossary` down. My `glossary` run is certainly faster, but not, say an order of magnitude faster.\r\n\r\nOne obvious approach to making this faster is to pre-render the reference and glossary data, following a `draft` or `revise`.\r\n\r\nGiven four functions: `clone`, `commits`, `tophogs` and `weather`, split among two groups `git` and `misc`, I imagine the pre-rendered glossary data could be kept in the following directory structure within the `.composure` directory:\r\n\r\n```shell\r\n.\r\n├── clone.inc\r\n├── commits.inc\r\n├── glossary\r\n│   ├── clone.gloss\r\n│   ├── commits.gloss\r\n│   ├── git.list\r\n│   ├── misc.list\r\n│   ├── tophogs.gloss\r\n│   └── weather.gloss\r\n├── tophogs.inc\r\n├── weather.inc\r\n```\r\n\r\nthe lists themselves could be trivially sorted when `glossary <group>` is called, and the `.gloss` files displayed. I suspect this would make things much faster indeed."}}