{"action":"closed","number":10203,"pull_request":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/10203","id":27973663,"html_url":"https://github.com/cocos2d/cocos2d-x/pull/10203","diff_url":"https://github.com/cocos2d/cocos2d-x/pull/10203.diff","patch_url":"https://github.com/cocos2d/cocos2d-x/pull/10203.patch","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10203","number":10203,"state":"closed","locked":false,"title":"Improved the parsing performance of bitmap fonts","user":{"login":"Dhilan007","id":5234286,"avatar_url":"https://avatars.githubusercontent.com/u/5234286?v=3","gravatar_id":"","url":"https://api.github.com/users/Dhilan007","html_url":"https://github.com/Dhilan007","followers_url":"https://api.github.com/users/Dhilan007/followers","following_url":"https://api.github.com/users/Dhilan007/following{/other_user}","gists_url":"https://api.github.com/users/Dhilan007/gists{/gist_id}","starred_url":"https://api.github.com/users/Dhilan007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dhilan007/subscriptions","organizations_url":"https://api.github.com/users/Dhilan007/orgs","repos_url":"https://api.github.com/users/Dhilan007/repos","events_url":"https://api.github.com/users/Dhilan007/events{/privacy}","received_events_url":"https://api.github.com/users/Dhilan007/received_events","type":"User","site_admin":false},"body":"Test Environment:\r\nPC:Lenovo T420i\r\nSystem:Window 8.1\r\n\r\nMy test case:\r\n```cpp\r\nstatic std::string fontFile = \"fonts/markerFelt.fnt\";\r\nauto startTime = utils::gettime();\r\nfor (int i = 0; i < 50; ++i)\r\n{\r\n        auto bmfont = new (std::nothrow) BMFontConfiguration();\r\n        bmfont->initWithFNTfile(fontFile);\r\n        bmfont->release();\r\n}\r\nauto dt = utils::gettime() - startTime;\r\n```\r\n\r\nThe most recent test result with markerFelt.fnt[146kb]：\r\n1.the latest version of cocos2d-x v3 branch：35.32s\r\n3.applied my patch:8.73s\r\n\r\nThe most recent test result with arial16.fnt[22kb]：\r\n1.the latest version of cocos2d-x v3 branch：1.292s\r\n3.applied my patch:0.267s","created_at":"2015-01-24T08:27:46Z","updated_at":"2015-01-26T05:46:04Z","closed_at":"2015-01-26T05:46:04Z","merged_at":"2015-01-26T05:46:04Z","merge_commit_sha":"c022ddc4a577fb4812a95f49a9fa9c899df08213","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/10203/commits","review_comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/10203/comments","review_comment_url":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/comments/{number}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10203/comments","statuses_url":"https://api.github.com/repos/cocos2d/cocos2d-x/statuses/9afa871164e5bc7c3ded05709be5865d755cc81d","head":{"label":"Dhilan007:v3-bmf-performance","ref":"v3-bmf-performance","sha":"9afa871164e5bc7c3ded05709be5865d755cc81d","user":{"login":"Dhilan007","id":5234286,"avatar_url":"https://avatars.githubusercontent.com/u/5234286?v=3","gravatar_id":"","url":"https://api.github.com/users/Dhilan007","html_url":"https://github.com/Dhilan007","followers_url":"https://api.github.com/users/Dhilan007/followers","following_url":"https://api.github.com/users/Dhilan007/following{/other_user}","gists_url":"https://api.github.com/users/Dhilan007/gists{/gist_id}","starred_url":"https://api.github.com/users/Dhilan007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dhilan007/subscriptions","organizations_url":"https://api.github.com/users/Dhilan007/orgs","repos_url":"https://api.github.com/users/Dhilan007/repos","events_url":"https://api.github.com/users/Dhilan007/events{/privacy}","received_events_url":"https://api.github.com/users/Dhilan007/received_events","type":"User","site_admin":false},"repo":{"id":13027918,"name":"cocos2d-x","full_name":"Dhilan007/cocos2d-x","owner":{"login":"Dhilan007","id":5234286,"avatar_url":"https://avatars.githubusercontent.com/u/5234286?v=3","gravatar_id":"","url":"https://api.github.com/users/Dhilan007","html_url":"https://github.com/Dhilan007","followers_url":"https://api.github.com/users/Dhilan007/followers","following_url":"https://api.github.com/users/Dhilan007/following{/other_user}","gists_url":"https://api.github.com/users/Dhilan007/gists{/gist_id}","starred_url":"https://api.github.com/users/Dhilan007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dhilan007/subscriptions","organizations_url":"https://api.github.com/users/Dhilan007/orgs","repos_url":"https://api.github.com/users/Dhilan007/repos","events_url":"https://api.github.com/users/Dhilan007/events{/privacy}","received_events_url":"https://api.github.com/users/Dhilan007/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dhilan007/cocos2d-x","description":"cocos2d for iOS, Android, Win32 and OS X. Built using C++","fork":true,"url":"https://api.github.com/repos/Dhilan007/cocos2d-x","forks_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/forks","keys_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/teams","hooks_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/hooks","issue_events_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/issues/events{/number}","events_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/events","assignees_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/assignees{/user}","branches_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/branches{/branch}","tags_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/tags","blobs_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/statuses/{sha}","languages_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/languages","stargazers_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/stargazers","contributors_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/contributors","subscribers_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/subscribers","subscription_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/subscription","commits_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/issues/comments/{number}","contents_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/contents/{+path}","compare_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/merges","archive_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/downloads","issues_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/issues{/number}","pulls_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/pulls{/number}","milestones_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/milestones{/number}","notifications_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/labels{/name}","releases_url":"https://api.github.com/repos/Dhilan007/cocos2d-x/releases{/id}","created_at":"2013-09-23T05:46:02Z","updated_at":"2014-09-18T06:25:21Z","pushed_at":"2015-01-24T08:25:01Z","git_url":"git://github.com/Dhilan007/cocos2d-x.git","ssh_url":"git@github.com:Dhilan007/cocos2d-x.git","clone_url":"https://github.com/Dhilan007/cocos2d-x.git","svn_url":"https://github.com/Dhilan007/cocos2d-x","homepage":"http://www.cocos2d-x.org","size":960319,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"v3"}},"base":{"label":"cocos2d:v3","ref":"v3","sha":"ebc75579a2f1a36e9f0c65627af191be3d674773","user":{"login":"cocos2d","id":234324,"avatar_url":"https://avatars.githubusercontent.com/u/234324?v=3","gravatar_id":"","url":"https://api.github.com/users/cocos2d","html_url":"https://github.com/cocos2d","followers_url":"https://api.github.com/users/cocos2d/followers","following_url":"https://api.github.com/users/cocos2d/following{/other_user}","gists_url":"https://api.github.com/users/cocos2d/gists{/gist_id}","starred_url":"https://api.github.com/users/cocos2d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocos2d/subscriptions","organizations_url":"https://api.github.com/users/cocos2d/orgs","repos_url":"https://api.github.com/users/cocos2d/repos","events_url":"https://api.github.com/users/cocos2d/events{/privacy}","received_events_url":"https://api.github.com/users/cocos2d/received_events","type":"Organization","site_admin":false},"repo":{"id":1093228,"name":"cocos2d-x","full_name":"cocos2d/cocos2d-x","owner":{"login":"cocos2d","id":234324,"avatar_url":"https://avatars.githubusercontent.com/u/234324?v=3","gravatar_id":"","url":"https://api.github.com/users/cocos2d","html_url":"https://github.com/cocos2d","followers_url":"https://api.github.com/users/cocos2d/followers","following_url":"https://api.github.com/users/cocos2d/following{/other_user}","gists_url":"https://api.github.com/users/cocos2d/gists{/gist_id}","starred_url":"https://api.github.com/users/cocos2d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocos2d/subscriptions","organizations_url":"https://api.github.com/users/cocos2d/orgs","repos_url":"https://api.github.com/users/cocos2d/repos","events_url":"https://api.github.com/users/cocos2d/events{/privacy}","received_events_url":"https://api.github.com/users/cocos2d/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cocos2d/cocos2d-x","description":"cocos2d-x for C++","fork":false,"url":"https://api.github.com/repos/cocos2d/cocos2d-x","forks_url":"https://api.github.com/repos/cocos2d/cocos2d-x/forks","keys_url":"https://api.github.com/repos/cocos2d/cocos2d-x/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cocos2d/cocos2d-x/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cocos2d/cocos2d-x/teams","hooks_url":"https://api.github.com/repos/cocos2d/cocos2d-x/hooks","issue_events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/events{/number}","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/events","assignees_url":"https://api.github.com/repos/cocos2d/cocos2d-x/assignees{/user}","branches_url":"https://api.github.com/repos/cocos2d/cocos2d-x/branches{/branch}","tags_url":"https://api.github.com/repos/cocos2d/cocos2d-x/tags","blobs_url":"https://api.github.com/repos/cocos2d/cocos2d-x/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cocos2d/cocos2d-x/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cocos2d/cocos2d-x/git/refs{/sha}","trees_url":"https://api.github.com/repos/cocos2d/cocos2d-x/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cocos2d/cocos2d-x/statuses/{sha}","languages_url":"https://api.github.com/repos/cocos2d/cocos2d-x/languages","stargazers_url":"https://api.github.com/repos/cocos2d/cocos2d-x/stargazers","contributors_url":"https://api.github.com/repos/cocos2d/cocos2d-x/contributors","subscribers_url":"https://api.github.com/repos/cocos2d/cocos2d-x/subscribers","subscription_url":"https://api.github.com/repos/cocos2d/cocos2d-x/subscription","commits_url":"https://api.github.com/repos/cocos2d/cocos2d-x/commits{/sha}","git_commits_url":"https://api.github.com/repos/cocos2d/cocos2d-x/git/commits{/sha}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/comments{/number}","issue_comment_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/{number}","contents_url":"https://api.github.com/repos/cocos2d/cocos2d-x/contents/{+path}","compare_url":"https://api.github.com/repos/cocos2d/cocos2d-x/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cocos2d/cocos2d-x/merges","archive_url":"https://api.github.com/repos/cocos2d/cocos2d-x/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cocos2d/cocos2d-x/downloads","issues_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues{/number}","pulls_url":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls{/number}","milestones_url":"https://api.github.com/repos/cocos2d/cocos2d-x/milestones{/number}","notifications_url":"https://api.github.com/repos/cocos2d/cocos2d-x/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/labels{/name}","releases_url":"https://api.github.com/repos/cocos2d/cocos2d-x/releases{/id}","created_at":"2010-11-18T23:17:00Z","updated_at":"2015-01-26T05:46:04Z","pushed_at":"2015-01-26T05:46:04Z","git_url":"git://github.com/cocos2d/cocos2d-x.git","ssh_url":"git@github.com:cocos2d/cocos2d-x.git","clone_url":"https://github.com/cocos2d/cocos2d-x.git","svn_url":"https://github.com/cocos2d/cocos2d-x","homepage":"http://www.cocos2d-x.org","size":1353843,"stargazers_count":5137,"watchers_count":5137,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3798,"mirror_url":null,"open_issues_count":614,"forks":3798,"open_issues":614,"watchers":5137,"default_branch":"v3"}},"_links":{"self":{"href":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/10203"},"html":{"href":"https://github.com/cocos2d/cocos2d-x/pull/10203"},"issue":{"href":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10203"},"comments":{"href":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10203/comments"},"review_comments":{"href":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/10203/comments"},"review_comment":{"href":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/cocos2d/cocos2d-x/pulls/10203/commits"},"statuses":{"href":"https://api.github.com/repos/cocos2d/cocos2d-x/statuses/9afa871164e5bc7c3ded05709be5865d755cc81d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"minggo","id":488203,"avatar_url":"https://avatars.githubusercontent.com/u/488203?v=3","gravatar_id":"","url":"https://api.github.com/users/minggo","html_url":"https://github.com/minggo","followers_url":"https://api.github.com/users/minggo/followers","following_url":"https://api.github.com/users/minggo/following{/other_user}","gists_url":"https://api.github.com/users/minggo/gists{/gist_id}","starred_url":"https://api.github.com/users/minggo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minggo/subscriptions","organizations_url":"https://api.github.com/users/minggo/orgs","repos_url":"https://api.github.com/users/minggo/repos","events_url":"https://api.github.com/users/minggo/events{/privacy}","received_events_url":"https://api.github.com/users/minggo/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":1,"additions":91,"deletions":123,"changed_files":1}}