{"action":"created","issue":{"url":"https://api.github.com/repos/uv48uson/amos-ss15-proj3/issues/113","labels_url":"https://api.github.com/repos/uv48uson/amos-ss15-proj3/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/uv48uson/amos-ss15-proj3/issues/113/comments","events_url":"https://api.github.com/repos/uv48uson/amos-ss15-proj3/issues/113/events","html_url":"https://github.com/uv48uson/amos-ss15-proj3/issues/113","id":91486501,"number":113,"title":"Performance of application is very slow.","user":{"login":"gayathery","id":11977313,"avatar_url":"https://avatars.githubusercontent.com/u/11977313?v=3","gravatar_id":"","url":"https://api.github.com/users/gayathery","html_url":"https://github.com/gayathery","followers_url":"https://api.github.com/users/gayathery/followers","following_url":"https://api.github.com/users/gayathery/following{/other_user}","gists_url":"https://api.github.com/users/gayathery/gists{/gist_id}","starred_url":"https://api.github.com/users/gayathery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gayathery/subscriptions","organizations_url":"https://api.github.com/users/gayathery/orgs","repos_url":"https://api.github.com/users/gayathery/repos","events_url":"https://api.github.com/users/gayathery/events{/privacy}","received_events_url":"https://api.github.com/users/gayathery/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/uv48uson/amos-ss15-proj3/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":31,"created_at":"2015-06-27T16:11:44Z","updated_at":"2015-06-29T00:36:02Z","closed_at":null,"body":"When any Requirement is clicked it takes nearly a minute to display its associated commits and changes. And after than when the file is clicked again it takes some seconds before the actual changes could be seen. I think as a user this will be annoying."},"comment":{"url":"https://api.github.com/repos/uv48uson/amos-ss15-proj3/issues/comments/116363494","html_url":"https://github.com/uv48uson/amos-ss15-proj3/issues/113#issuecomment-116363494","issue_url":"https://api.github.com/repos/uv48uson/amos-ss15-proj3/issues/113","id":116363494,"user":{"login":"yadimon","id":4369489,"avatar_url":"https://avatars.githubusercontent.com/u/4369489?v=3","gravatar_id":"","url":"https://api.github.com/users/yadimon","html_url":"https://github.com/yadimon","followers_url":"https://api.github.com/users/yadimon/followers","following_url":"https://api.github.com/users/yadimon/following{/other_user}","gists_url":"https://api.github.com/users/yadimon/gists{/gist_id}","starred_url":"https://api.github.com/users/yadimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yadimon/subscriptions","organizations_url":"https://api.github.com/users/yadimon/orgs","repos_url":"https://api.github.com/users/yadimon/repos","events_url":"https://api.github.com/users/yadimon/events{/privacy}","received_events_url":"https://api.github.com/users/yadimon/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T00:36:01Z","updated_at":"2015-06-29T00:36:01Z","body":"@gayathery  we can purge caches ... e.g. by indexer event (like repo changed event)\r\n@TPolzer calls of blame are not that much, and cache them maybe gives like 30% improvement for first run of `getCommitFilesForRequirementID()`.\r\nAfter this run, or after the indexer is ready, caches makes everything faster.\r\n\r\nSo the problem of first run is still here, and exactly by req-13 its horrible.\r\n\r\nCould it be a problem, that blames try to diff binary files, like images ?\r\nthe first big blame problems comes by : `x-artifacts\\images\\SpiceTraceability_SampleTestApplication.png` this commitfile.\r\nfor req 13.\r\n\r\n\r\n@TPolzer \r\nat the GitBlameOperation you have this comment:\r\n```\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * Calculate the offset for the line after the\r\n\t\t\t\t\t\t\t * edits before it. If performance becomes an\r\n\t\t\t\t\t\t\t * issue, this could be done faster by\r\n\t\t\t\t\t\t\t * traversing the cur.words and diff simultaneously\r\n\t\t\t\t\t\t\t * and keeping track of the offset.\r\n\t\t\t\t\t\t\t */\r\n```\r\n\r\nand the calculation there, with the png file, takes very long time.\r\n\r\nmore info about slow code:\r\nvcsClient.getCommitFiles(\"ff8848c845e5339b93351c6e728bacc1bcdb2aa3\").size()\r\nis **86** ..\r\nthis commit ff8848c845e5339b93351c6e728bacc1bcdb2aa3 has only 11 changed files, but merge.\r\nvcsClient.getCommitFiles(\"1df3c8021ceaa84c49493400124c4e6556c87317\").size()  == **127**\r\non github: 1df3c8021ceaa84c49493400124c4e6556c87317 1 change, but a merge too.\r\n\r\nprobably the merges are somehow too hard for vcsClient.\r\n\r\n\r\n--------------------\r\nmaybe this information helps you to improve the blame."}}