{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/6137","labels_url":"https://api.github.com/repos/apache/spark/issues/6137/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/6137/comments","events_url":"https://api.github.com/repos/apache/spark/issues/6137/events","html_url":"https://github.com/apache/spark/pull/6137","id":76170266,"number":6137,"title":"[SPARK-7620][ML][MLlib] Removed calling size, length in while condition to avoid extra JVM call","user":{"login":"dbtsai","id":1134574,"avatar_url":"https://avatars.githubusercontent.com/u/1134574?v=3","gravatar_id":"","url":"https://api.github.com/users/dbtsai","html_url":"https://github.com/dbtsai","followers_url":"https://api.github.com/users/dbtsai/followers","following_url":"https://api.github.com/users/dbtsai/following{/other_user}","gists_url":"https://api.github.com/users/dbtsai/gists{/gist_id}","starred_url":"https://api.github.com/users/dbtsai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbtsai/subscriptions","organizations_url":"https://api.github.com/users/dbtsai/orgs","repos_url":"https://api.github.com/users/dbtsai/repos","events_url":"https://api.github.com/users/dbtsai/events{/privacy}","received_events_url":"https://api.github.com/users/dbtsai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-05-14T00:07:54Z","updated_at":"2015-05-14T01:57:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/6137","html_url":"https://github.com/apache/spark/pull/6137","diff_url":"https://github.com/apache/spark/pull/6137.diff","patch_url":"https://github.com/apache/spark/pull/6137.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/101879949","html_url":"https://github.com/apache/spark/pull/6137#issuecomment-101879949","issue_url":"https://api.github.com/repos/apache/spark/issues/6137","id":101879949,"user":{"login":"dbtsai","id":1134574,"avatar_url":"https://avatars.githubusercontent.com/u/1134574?v=3","gravatar_id":"","url":"https://api.github.com/users/dbtsai","html_url":"https://github.com/dbtsai","followers_url":"https://api.github.com/users/dbtsai/followers","following_url":"https://api.github.com/users/dbtsai/following{/other_user}","gists_url":"https://api.github.com/users/dbtsai/gists{/gist_id}","starred_url":"https://api.github.com/users/dbtsai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbtsai/subscriptions","organizations_url":"https://api.github.com/users/dbtsai/orgs","repos_url":"https://api.github.com/users/dbtsai/repos","events_url":"https://api.github.com/users/dbtsai/events{/privacy}","received_events_url":"https://api.github.com/users/dbtsai/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T01:57:04Z","updated_at":"2015-05-14T01:57:04Z","body":"@zsxwing \r\n\r\nWe did benchmark in this PR, and actually the performance is different in the tight loop. JVM just doesn't know if the size will be constant. Also, having local copy of reference of array will boost performance dramatically. \r\nhttps://github.com/apache/spark/commit/bf1a6aaac577757a293a573fe8eae9669697310a"}}