{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/952","repository_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/952/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/952/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/952/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/952","id":147686844,"number":952,"title":"Massive slowdown when updating from 2.5.1 to 2.6.0","user":{"login":"Trainmaster","id":2514421,"avatar_url":"https://avatars.githubusercontent.com/u/2514421?v=3","gravatar_id":"","url":"https://api.github.com/users/Trainmaster","html_url":"https://github.com/Trainmaster","followers_url":"https://api.github.com/users/Trainmaster/followers","following_url":"https://api.github.com/users/Trainmaster/following{/other_user}","gists_url":"https://api.github.com/users/Trainmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/Trainmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trainmaster/subscriptions","organizations_url":"https://api.github.com/users/Trainmaster/orgs","repos_url":"https://api.github.com/users/Trainmaster/repos","events_url":"https://api.github.com/users/Trainmaster/events{/privacy}","received_events_url":"https://api.github.com/users/Trainmaster/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/labels/Awaiting%20Feedback","name":"Awaiting Feedback","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-12T09:14:32Z","updated_at":"2016-04-26T09:05:50Z","closed_at":null,"body":"In our company we observed a massive slowdown when running CodeSniffer 2.6.0 with a custom ruleset:\r\n\r\nVersion | Small project (579 files) | Large project (5486 files)\r\n--- | --- | ---\r\n2.5.1 | Time: 12.89 secs; Memory: 46Mb | Time: 3 mins, 12.88 secs; Memory: 56Mb\r\n2.6.0 | Time: 47.68 secs; Memory: 46Mb | Time: 8 mins, 34.95 secs; Memory: 56Mb\r\n\r\nBoth analyses were run with PHP7:\r\n```bash\r\n$ php -v\r\nPHP 7.0.5 (cli) (built: Mar 30 2016 10:15:34) ( NTS )\r\nCopyright (c) 1997-2016 The PHP Group\r\nZend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies\r\n```\r\n\r\nHas anybody else experienced such a slowdown?"},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/214676919","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/952#issuecomment-214676919","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/952","id":214676919,"user":{"login":"Trainmaster","id":2514421,"avatar_url":"https://avatars.githubusercontent.com/u/2514421?v=3","gravatar_id":"","url":"https://api.github.com/users/Trainmaster","html_url":"https://github.com/Trainmaster","followers_url":"https://api.github.com/users/Trainmaster/followers","following_url":"https://api.github.com/users/Trainmaster/following{/other_user}","gists_url":"https://api.github.com/users/Trainmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/Trainmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trainmaster/subscriptions","organizations_url":"https://api.github.com/users/Trainmaster/orgs","repos_url":"https://api.github.com/users/Trainmaster/repos","events_url":"https://api.github.com/users/Trainmaster/events{/privacy}","received_events_url":"https://api.github.com/users/Trainmaster/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T09:05:50Z","updated_at":"2016-04-26T09:05:50Z","body":"@gsherwood I think I've tracked down the rule causing the decrease in performance, it's`Generic.PHP.Syntax`. \r\n\r\nWith `2.5.1` each file takes about 0-31 ms, after updating to `2.6.0` 80-109 ms. After excluding the rule `Generic.PHP.Syntax` the difference is gone and `2.6.0` also shows 0-31 ms."}}