{"action":"opened","number":1274,"pull_request":{"url":"https://api.github.com/repos/RubyLouvre/avalon/pulls/1274","id":61023691,"html_url":"https://github.com/RubyLouvre/avalon/pull/1274","diff_url":"https://github.com/RubyLouvre/avalon/pull/1274.diff","patch_url":"https://github.com/RubyLouvre/avalon/pull/1274.patch","issue_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1274","number":1274,"state":"open","locked":false,"title":"优化each/repeat数组赋值操作的性能","user":{"login":"xiarugu","id":3876910,"avatar_url":"https://avatars.githubusercontent.com/u/3876910?v=3","gravatar_id":"","url":"https://api.github.com/users/xiarugu","html_url":"https://github.com/xiarugu","followers_url":"https://api.github.com/users/xiarugu/followers","following_url":"https://api.github.com/users/xiarugu/following{/other_user}","gists_url":"https://api.github.com/users/xiarugu/gists{/gist_id}","starred_url":"https://api.github.com/users/xiarugu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiarugu/subscriptions","organizations_url":"https://api.github.com/users/xiarugu/orgs","repos_url":"https://api.github.com/users/xiarugu/repos","events_url":"https://api.github.com/users/xiarugu/events{/privacy}","received_events_url":"https://api.github.com/users/xiarugu/received_events","type":"User","site_admin":false},"body":"如果each/repeat对应的数组重新赋值, 直接清空容器, 大幅提升性能","created_at":"2016-02-29T03:35:34Z","updated_at":"2016-02-29T03:35:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RubyLouvre/avalon/pulls/1274/commits","review_comments_url":"https://api.github.com/repos/RubyLouvre/avalon/pulls/1274/comments","review_comment_url":"https://api.github.com/repos/RubyLouvre/avalon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1274/comments","statuses_url":"https://api.github.com/repos/RubyLouvre/avalon/statuses/496ffaf875b10e2368e8e6af74f85e4b7b1471e1","head":{"label":"xiarugu:1.5.0","ref":"1.5.0","sha":"496ffaf875b10e2368e8e6af74f85e4b7b1471e1","user":{"login":"xiarugu","id":3876910,"avatar_url":"https://avatars.githubusercontent.com/u/3876910?v=3","gravatar_id":"","url":"https://api.github.com/users/xiarugu","html_url":"https://github.com/xiarugu","followers_url":"https://api.github.com/users/xiarugu/followers","following_url":"https://api.github.com/users/xiarugu/following{/other_user}","gists_url":"https://api.github.com/users/xiarugu/gists{/gist_id}","starred_url":"https://api.github.com/users/xiarugu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiarugu/subscriptions","organizations_url":"https://api.github.com/users/xiarugu/orgs","repos_url":"https://api.github.com/users/xiarugu/repos","events_url":"https://api.github.com/users/xiarugu/events{/privacy}","received_events_url":"https://api.github.com/users/xiarugu/received_events","type":"User","site_admin":false},"repo":{"id":52759076,"name":"avalon","full_name":"xiarugu/avalon","owner":{"login":"xiarugu","id":3876910,"avatar_url":"https://avatars.githubusercontent.com/u/3876910?v=3","gravatar_id":"","url":"https://api.github.com/users/xiarugu","html_url":"https://github.com/xiarugu","followers_url":"https://api.github.com/users/xiarugu/followers","following_url":"https://api.github.com/users/xiarugu/following{/other_user}","gists_url":"https://api.github.com/users/xiarugu/gists{/gist_id}","starred_url":"https://api.github.com/users/xiarugu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiarugu/subscriptions","organizations_url":"https://api.github.com/users/xiarugu/orgs","repos_url":"https://api.github.com/users/xiarugu/repos","events_url":"https://api.github.com/users/xiarugu/events{/privacy}","received_events_url":"https://api.github.com/users/xiarugu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xiarugu/avalon","description":"A lightweight,high-performance and easy-to-learn javascript MVVM framework","fork":true,"url":"https://api.github.com/repos/xiarugu/avalon","forks_url":"https://api.github.com/repos/xiarugu/avalon/forks","keys_url":"https://api.github.com/repos/xiarugu/avalon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xiarugu/avalon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xiarugu/avalon/teams","hooks_url":"https://api.github.com/repos/xiarugu/avalon/hooks","issue_events_url":"https://api.github.com/repos/xiarugu/avalon/issues/events{/number}","events_url":"https://api.github.com/repos/xiarugu/avalon/events","assignees_url":"https://api.github.com/repos/xiarugu/avalon/assignees{/user}","branches_url":"https://api.github.com/repos/xiarugu/avalon/branches{/branch}","tags_url":"https://api.github.com/repos/xiarugu/avalon/tags","blobs_url":"https://api.github.com/repos/xiarugu/avalon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xiarugu/avalon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xiarugu/avalon/git/refs{/sha}","trees_url":"https://api.github.com/repos/xiarugu/avalon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xiarugu/avalon/statuses/{sha}","languages_url":"https://api.github.com/repos/xiarugu/avalon/languages","stargazers_url":"https://api.github.com/repos/xiarugu/avalon/stargazers","contributors_url":"https://api.github.com/repos/xiarugu/avalon/contributors","subscribers_url":"https://api.github.com/repos/xiarugu/avalon/subscribers","subscription_url":"https://api.github.com/repos/xiarugu/avalon/subscription","commits_url":"https://api.github.com/repos/xiarugu/avalon/commits{/sha}","git_commits_url":"https://api.github.com/repos/xiarugu/avalon/git/commits{/sha}","comments_url":"https://api.github.com/repos/xiarugu/avalon/comments{/number}","issue_comment_url":"https://api.github.com/repos/xiarugu/avalon/issues/comments{/number}","contents_url":"https://api.github.com/repos/xiarugu/avalon/contents/{+path}","compare_url":"https://api.github.com/repos/xiarugu/avalon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xiarugu/avalon/merges","archive_url":"https://api.github.com/repos/xiarugu/avalon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xiarugu/avalon/downloads","issues_url":"https://api.github.com/repos/xiarugu/avalon/issues{/number}","pulls_url":"https://api.github.com/repos/xiarugu/avalon/pulls{/number}","milestones_url":"https://api.github.com/repos/xiarugu/avalon/milestones{/number}","notifications_url":"https://api.github.com/repos/xiarugu/avalon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xiarugu/avalon/labels{/name}","releases_url":"https://api.github.com/repos/xiarugu/avalon/releases{/id}","deployments_url":"https://api.github.com/repos/xiarugu/avalon/deployments","created_at":"2016-02-29T02:48:09Z","updated_at":"2016-02-29T02:48:10Z","pushed_at":"2016-02-29T03:34:12Z","git_url":"git://github.com/xiarugu/avalon.git","ssh_url":"git@github.com:xiarugu/avalon.git","clone_url":"https://github.com/xiarugu/avalon.git","svn_url":"https://github.com/xiarugu/avalon","homepage":"http://avalonjs.github.io/","size":47250,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"RubyLouvre:1.5.0","ref":"1.5.0","sha":"963c59af886cb6ddeccbbe75dbecff87a4f77a70","user":{"login":"RubyLouvre","id":190846,"avatar_url":"https://avatars.githubusercontent.com/u/190846?v=3","gravatar_id":"","url":"https://api.github.com/users/RubyLouvre","html_url":"https://github.com/RubyLouvre","followers_url":"https://api.github.com/users/RubyLouvre/followers","following_url":"https://api.github.com/users/RubyLouvre/following{/other_user}","gists_url":"https://api.github.com/users/RubyLouvre/gists{/gist_id}","starred_url":"https://api.github.com/users/RubyLouvre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubyLouvre/subscriptions","organizations_url":"https://api.github.com/users/RubyLouvre/orgs","repos_url":"https://api.github.com/users/RubyLouvre/repos","events_url":"https://api.github.com/users/RubyLouvre/events{/privacy}","received_events_url":"https://api.github.com/users/RubyLouvre/received_events","type":"User","site_admin":false},"repo":{"id":10579398,"name":"avalon","full_name":"RubyLouvre/avalon","owner":{"login":"RubyLouvre","id":190846,"avatar_url":"https://avatars.githubusercontent.com/u/190846?v=3","gravatar_id":"","url":"https://api.github.com/users/RubyLouvre","html_url":"https://github.com/RubyLouvre","followers_url":"https://api.github.com/users/RubyLouvre/followers","following_url":"https://api.github.com/users/RubyLouvre/following{/other_user}","gists_url":"https://api.github.com/users/RubyLouvre/gists{/gist_id}","starred_url":"https://api.github.com/users/RubyLouvre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubyLouvre/subscriptions","organizations_url":"https://api.github.com/users/RubyLouvre/orgs","repos_url":"https://api.github.com/users/RubyLouvre/repos","events_url":"https://api.github.com/users/RubyLouvre/events{/privacy}","received_events_url":"https://api.github.com/users/RubyLouvre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RubyLouvre/avalon","description":"A lightweight,high-performance and easy-to-learn javascript MVVM framework","fork":false,"url":"https://api.github.com/repos/RubyLouvre/avalon","forks_url":"https://api.github.com/repos/RubyLouvre/avalon/forks","keys_url":"https://api.github.com/repos/RubyLouvre/avalon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RubyLouvre/avalon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RubyLouvre/avalon/teams","hooks_url":"https://api.github.com/repos/RubyLouvre/avalon/hooks","issue_events_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/events{/number}","events_url":"https://api.github.com/repos/RubyLouvre/avalon/events","assignees_url":"https://api.github.com/repos/RubyLouvre/avalon/assignees{/user}","branches_url":"https://api.github.com/repos/RubyLouvre/avalon/branches{/branch}","tags_url":"https://api.github.com/repos/RubyLouvre/avalon/tags","blobs_url":"https://api.github.com/repos/RubyLouvre/avalon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RubyLouvre/avalon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RubyLouvre/avalon/git/refs{/sha}","trees_url":"https://api.github.com/repos/RubyLouvre/avalon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RubyLouvre/avalon/statuses/{sha}","languages_url":"https://api.github.com/repos/RubyLouvre/avalon/languages","stargazers_url":"https://api.github.com/repos/RubyLouvre/avalon/stargazers","contributors_url":"https://api.github.com/repos/RubyLouvre/avalon/contributors","subscribers_url":"https://api.github.com/repos/RubyLouvre/avalon/subscribers","subscription_url":"https://api.github.com/repos/RubyLouvre/avalon/subscription","commits_url":"https://api.github.com/repos/RubyLouvre/avalon/commits{/sha}","git_commits_url":"https://api.github.com/repos/RubyLouvre/avalon/git/commits{/sha}","comments_url":"https://api.github.com/repos/RubyLouvre/avalon/comments{/number}","issue_comment_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/comments{/number}","contents_url":"https://api.github.com/repos/RubyLouvre/avalon/contents/{+path}","compare_url":"https://api.github.com/repos/RubyLouvre/avalon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RubyLouvre/avalon/merges","archive_url":"https://api.github.com/repos/RubyLouvre/avalon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RubyLouvre/avalon/downloads","issues_url":"https://api.github.com/repos/RubyLouvre/avalon/issues{/number}","pulls_url":"https://api.github.com/repos/RubyLouvre/avalon/pulls{/number}","milestones_url":"https://api.github.com/repos/RubyLouvre/avalon/milestones{/number}","notifications_url":"https://api.github.com/repos/RubyLouvre/avalon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RubyLouvre/avalon/labels{/name}","releases_url":"https://api.github.com/repos/RubyLouvre/avalon/releases{/id}","deployments_url":"https://api.github.com/repos/RubyLouvre/avalon/deployments","created_at":"2013-06-09T06:34:28Z","updated_at":"2016-02-29T03:29:30Z","pushed_at":"2016-02-29T02:53:54Z","git_url":"git://github.com/RubyLouvre/avalon.git","ssh_url":"git@github.com:RubyLouvre/avalon.git","clone_url":"https://github.com/RubyLouvre/avalon.git","svn_url":"https://github.com/RubyLouvre/avalon","homepage":"http://avalonjs.github.io/","size":48792,"stargazers_count":2942,"watchers_count":2942,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1085,"mirror_url":null,"open_issues_count":25,"forks":1085,"open_issues":25,"watchers":2942,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RubyLouvre/avalon/pulls/1274"},"html":{"href":"https://github.com/RubyLouvre/avalon/pull/1274"},"issue":{"href":"https://api.github.com/repos/RubyLouvre/avalon/issues/1274"},"comments":{"href":"https://api.github.com/repos/RubyLouvre/avalon/issues/1274/comments"},"review_comments":{"href":"https://api.github.com/repos/RubyLouvre/avalon/pulls/1274/comments"},"review_comment":{"href":"https://api.github.com/repos/RubyLouvre/avalon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RubyLouvre/avalon/pulls/1274/commits"},"statuses":{"href":"https://api.github.com/repos/RubyLouvre/avalon/statuses/496ffaf875b10e2368e8e6af74f85e4b7b1471e1"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":26,"deletions":1,"changed_files":1}}