{"action":"created","issue":{"url":"https://api.github.com/repos/noamtcohen/SlimJS/issues/5","repository_url":"https://api.github.com/repos/noamtcohen/SlimJS","labels_url":"https://api.github.com/repos/noamtcohen/SlimJS/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/noamtcohen/SlimJS/issues/5/comments","events_url":"https://api.github.com/repos/noamtcohen/SlimJS/issues/5/events","html_url":"https://github.com/noamtcohen/SlimJS/issues/5","id":146546719,"number":5,"title":"SlimJS 2.0.1 is very slow and throws an error","user":{"login":"NicoleRauch","id":436499,"avatar_url":"https://avatars.githubusercontent.com/u/436499?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoleRauch","html_url":"https://github.com/NicoleRauch","followers_url":"https://api.github.com/users/NicoleRauch/followers","following_url":"https://api.github.com/users/NicoleRauch/following{/other_user}","gists_url":"https://api.github.com/users/NicoleRauch/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoleRauch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoleRauch/subscriptions","organizations_url":"https://api.github.com/users/NicoleRauch/orgs","repos_url":"https://api.github.com/users/NicoleRauch/repos","events_url":"https://api.github.com/users/NicoleRauch/events{/privacy}","received_events_url":"https://api.github.com/users/NicoleRauch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-07T08:33:38Z","updated_at":"2016-04-07T10:09:41Z","closed_at":null,"body":"I've upgraded to SlimJS 2.0.1 and found it to be extremely slow. This is what I tried:\r\n\r\nI created a test page with a corresponding SetUp page. \r\n* If both pages are empty, this runs in no time.\r\n* If I add a fixture import to the SetUp page, the (still empty) test page takes between 36 and 55 seconds to run! During that time, there is lots of searching going on on the hard drive.\r\n* When i remove all search paths except the one I need to load, there is no audible hard drive searching going on any more, but the page still takes 36 to 55 seconds to run.\r\n\r\nI hope you can imagine that with this timing, it is impossible for me to use it. I'm using FitNesse to work in a Specification by Example fashion, and my pages are mostly at the granularity of unit tests - I need fast feedback on these...\r\n\r\nInterestingly, this gets written to standard error when I run the page:\r\n\r\n.../node_modules/slimjs/src/SlimJS.js:43\r\n        var command = instructionArguments[1];\r\n                                          ^\r\n\r\nTypeError: Cannot read property '1' of undefined\r\n    at executeInstruction (.../node_modules/slimjs/src/SlimJS.js:43:43)\r\n    at onReceivedInstructionSet (.../node_modules/slimjs/src/SlimJS.js:24:9)\r\n    at executeInstructionSet (.../node_modules/slimjs/src/tcp/ConnectionHandler.js:58:9)\r\n    at tryToParsePayloadBody (.../node_modules/slimjs/src/tcp/ConnectionHandler.js:48:13)\r\n    at Socket.processData (.../node_modules/slimjs/src/tcp/ConnectionHandler.js:25:9)\r\n    at emitOne (events.js:77:13)\r\n    at Socket.emit (events.js:169:7)\r\n    at readableAddChunk (_stream_readable.js:146:16)\r\n    at Socket.Readable.push (_stream_readable.js:110:10)\r\n    at TCP.onread (net.js:523:20)"},"comment":{"url":"https://api.github.com/repos/noamtcohen/SlimJS/issues/comments/206796451","html_url":"https://github.com/noamtcohen/SlimJS/issues/5#issuecomment-206796451","issue_url":"https://api.github.com/repos/noamtcohen/SlimJS/issues/5","id":206796451,"user":{"login":"noamtcohen","id":4671571,"avatar_url":"https://avatars.githubusercontent.com/u/4671571?v=3","gravatar_id":"","url":"https://api.github.com/users/noamtcohen","html_url":"https://github.com/noamtcohen","followers_url":"https://api.github.com/users/noamtcohen/followers","following_url":"https://api.github.com/users/noamtcohen/following{/other_user}","gists_url":"https://api.github.com/users/noamtcohen/gists{/gist_id}","starred_url":"https://api.github.com/users/noamtcohen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noamtcohen/subscriptions","organizations_url":"https://api.github.com/users/noamtcohen/orgs","repos_url":"https://api.github.com/users/noamtcohen/repos","events_url":"https://api.github.com/users/noamtcohen/events{/privacy}","received_events_url":"https://api.github.com/users/noamtcohen/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T10:09:41Z","updated_at":"2016-04-07T10:09:41Z","body":"I understand your problem and that it makes the system unusable.\r\nI haven't encountered this error on the project I'm working on and it's hard for me to understand from the log and your description what is wrong.\r\nCan you create a repo with this minimal case that I can checkout? "}}