{"action":"closed","number":108,"pull_request":{"url":"https://api.github.com/repos/springload/draftjs_exporter/pulls/108","id":232219791,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMjE5Nzkx","html_url":"https://github.com/springload/draftjs_exporter/pull/108","diff_url":"https://github.com/springload/draftjs_exporter/pull/108.diff","patch_url":"https://github.com/springload/draftjs_exporter/pull/108.patch","issue_url":"https://api.github.com/repos/springload/draftjs_exporter/issues/108","number":108,"state":"closed","locked":false,"title":"Minor performance improvements","user":{"login":"thibaudcolas","id":877585,"node_id":"MDQ6VXNlcjg3NzU4NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/877585?v=4","gravatar_id":"","url":"https://api.github.com/users/thibaudcolas","html_url":"https://github.com/thibaudcolas","followers_url":"https://api.github.com/users/thibaudcolas/followers","following_url":"https://api.github.com/users/thibaudcolas/following{/other_user}","gists_url":"https://api.github.com/users/thibaudcolas/gists{/gist_id}","starred_url":"https://api.github.com/users/thibaudcolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thibaudcolas/subscriptions","organizations_url":"https://api.github.com/users/thibaudcolas/orgs","repos_url":"https://api.github.com/users/thibaudcolas/repos","events_url":"https://api.github.com/users/thibaudcolas/events{/privacy}","received_events_url":"https://api.github.com/users/thibaudcolas/received_events","type":"User","site_admin":false},"body":"Most of those improvements are fairly small. They amount to skipping operations that are not necessary in simple / more common content patterns – for example, blocks not having any styles or entities, or entities not containing anything beyond text.\r\n\r\nThe speed gain is about 8%. There also seems to be a 20% decrease in memory consumption.\r\n\r\nBefore:\r\n\r\n```\r\npython benchmark.py\r\nExporting 792 ContentStates 500 times\r\n         303087001 function calls (281316001 primitive calls) in 159.333 seconds\r\n```\r\n\r\nAfter:\r\n\r\n```\r\npython benchmark.py\r\nExporting 792 ContentStates 500 times\r\n         261211501 function calls (247228001 primitive calls) in 146.123 seconds\r\n```","created_at":"2018-11-20T07:44:58Z","updated_at":"2018-11-20T08:48:33Z","closed_at":"2018-11-20T08:48:33Z","merged_at":"2018-11-20T08:48:33Z","merge_commit_sha":"1e0d2b2ab7e291401f7adce3a463c64caea35006","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":398939782,"node_id":"MDU6TGFiZWwzOTg5Mzk3ODI=","url":"https://api.github.com/repos/springload/draftjs_exporter/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"milestone":{"url":"https://api.github.com/repos/springload/draftjs_exporter/milestones/5","html_url":"https://github.com/springload/draftjs_exporter/milestone/5","labels_url":"https://api.github.com/repos/springload/draftjs_exporter/milestones/5/labels","id":3820385,"node_id":"MDk6TWlsZXN0b25lMzgyMDM4NQ==","number":5,"title":"v2.1.5","description":"","creator":{"login":"thibaudcolas","id":877585,"node_id":"MDQ6VXNlcjg3NzU4NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/877585?v=4","gravatar_id":"","url":"https://api.github.com/users/thibaudcolas","html_url":"https://github.com/thibaudcolas","followers_url":"https://api.github.com/users/thibaudcolas/followers","following_url":"https://api.github.com/users/thibaudcolas/following{/other_user}","gists_url":"https://api.github.com/users/thibaudcolas/gists{/gist_id}","starred_url":"https://api.github.com/users/thibaudcolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thibaudcolas/subscriptions","organizations_url":"https://api.github.com/users/thibaudcolas/orgs","repos_url":"https://api.github.com/users/thibaudcolas/repos","events_url":"https://api.github.com/users/thibaudcolas/events{/privacy}","received_events_url":"https://api.github.com/users/thibaudcolas/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":3,"state":"open","created_at":"2018-11-14T07:40:23Z","updated_at":"2018-11-20T08:48:33Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/springload/draftjs_exporter/pulls/108/commits","review_comments_url":"https://api.github.com/repos/springload/draftjs_exporter/pulls/108/comments","review_comment_url":"https://api.github.com/repos/springload/draftjs_exporter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/springload/draftjs_exporter/issues/108/comments","statuses_url":"https://api.github.com/repos/springload/draftjs_exporter/statuses/60220870ea6688b72cca4122e1a38ac26e8500d7","head":{"label":"springload:chore/perf-improvements","ref":"chore/perf-improvements","sha":"60220870ea6688b72cca4122e1a38ac26e8500d7","user":{"login":"springload","id":1691454,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2OTE0NTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1691454?v=4","gravatar_id":"","url":"https://api.github.com/users/springload","html_url":"https://github.com/springload","followers_url":"https://api.github.com/users/springload/followers","following_url":"https://api.github.com/users/springload/following{/other_user}","gists_url":"https://api.github.com/users/springload/gists{/gist_id}","starred_url":"https://api.github.com/users/springload/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/springload/subscriptions","organizations_url":"https://api.github.com/users/springload/orgs","repos_url":"https://api.github.com/users/springload/repos","events_url":"https://api.github.com/users/springload/events{/privacy}","received_events_url":"https://api.github.com/users/springload/received_events","type":"Organization","site_admin":false},"repo":{"id":62028497,"node_id":"MDEwOlJlcG9zaXRvcnk2MjAyODQ5Nw==","name":"draftjs_exporter","full_name":"springload/draftjs_exporter","private":false,"owner":{"login":"springload","id":1691454,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2OTE0NTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1691454?v=4","gravatar_id":"","url":"https://api.github.com/users/springload","html_url":"https://github.com/springload","followers_url":"https://api.github.com/users/springload/followers","following_url":"https://api.github.com/users/springload/following{/other_user}","gists_url":"https://api.github.com/users/springload/gists{/gist_id}","starred_url":"https://api.github.com/users/springload/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/springload/subscriptions","organizations_url":"https://api.github.com/users/springload/orgs","repos_url":"https://api.github.com/users/springload/repos","events_url":"https://api.github.com/users/springload/events{/privacy}","received_events_url":"https://api.github.com/users/springload/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/springload/draftjs_exporter","description":"Library to convert Draft.js ContentState to HTML","fork":false,"url":"https://api.github.com/repos/springload/draftjs_exporter","forks_url":"https://api.github.com/repos/springload/draftjs_exporter/forks","keys_url":"https://api.github.com/repos/springload/draftjs_exporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/springload/draftjs_exporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/springload/draftjs_exporter/teams","hooks_url":"https://api.github.com/repos/springload/draftjs_exporter/hooks","issue_events_url":"https://api.github.com/repos/springload/draftjs_exporter/issues/events{/number}","events_url":"https://api.github.com/repos/springload/draftjs_exporter/events","assignees_url":"https://api.github.com/repos/springload/draftjs_exporter/assignees{/user}","branches_url":"https://api.github.com/repos/springload/draftjs_exporter/branches{/branch}","tags_url":"https://api.github.com/repos/springload/draftjs_exporter/tags","blobs_url":"https://api.github.com/repos/springload/draftjs_exporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/springload/draftjs_exporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/springload/draftjs_exporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/springload/draftjs_exporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/springload/draftjs_exporter/statuses/{sha}","languages_url":"https://api.github.com/repos/springload/draftjs_exporter/languages","stargazers_url":"https://api.github.com/repos/springload/draftjs_exporter/stargazers","contributors_url":"https://api.github.com/repos/springload/draftjs_exporter/contributors","subscribers_url":"https://api.github.com/repos/springload/draftjs_exporter/subscribers","subscription_url":"https://api.github.com/repos/springload/draftjs_exporter/subscription","commits_url":"https://api.github.com/repos/springload/draftjs_exporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/springload/draftjs_exporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/springload/draftjs_exporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/springload/draftjs_exporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/springload/draftjs_exporter/contents/{+path}","compare_url":"https://api.github.com/repos/springload/draftjs_exporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/springload/draftjs_exporter/merges","archive_url":"https://api.github.com/repos/springload/draftjs_exporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/springload/draftjs_exporter/downloads","issues_url":"https://api.github.com/repos/springload/draftjs_exporter/issues{/number}","pulls_url":"https://api.github.com/repos/springload/draftjs_exporter/pulls{/number}","milestones_url":"https://api.github.com/repos/springload/draftjs_exporter/milestones{/number}","notifications_url":"https://api.github.com/repos/springload/draftjs_exporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/springload/draftjs_exporter/labels{/name}","releases_url":"https://api.github.com/repos/springload/draftjs_exporter/releases{/id}","deployments_url":"https://api.github.com/repos/springload/draftjs_exporter/deployments","created_at":"2016-06-27T05:45:36Z","updated_at":"2018-11-20T03:08:09Z","pushed_at":"2018-11-20T08:48:33Z","git_url":"git://github.com/springload/draftjs_exporter.git","ssh_url":"git@github.com:springload/draftjs_exporter.git","clone_url":"https://github.com/springload/draftjs_exporter.git","svn_url":"https://github.com/springload/draftjs_exporter","homepage":"https://www.draftail.org/blog/2018/03/13/rethinking-rich-text-pipelines-with-draft-js","size":481,"stargazers_count":36,"watchers_count":36,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":11,"open_issues":2,"watchers":36,"default_branch":"master"}},"base":{"label":"springload:master","ref":"master","sha":"e6060e1498522ebd4b1897a7a7eff97e230dcf2d","user":{"login":"springload","id":1691454,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2OTE0NTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1691454?v=4","gravatar_id":"","url":"https://api.github.com/users/springload","html_url":"https://github.com/springload","followers_url":"https://api.github.com/users/springload/followers","following_url":"https://api.github.com/users/springload/following{/other_user}","gists_url":"https://api.github.com/users/springload/gists{/gist_id}","starred_url":"https://api.github.com/users/springload/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/springload/subscriptions","organizations_url":"https://api.github.com/users/springload/orgs","repos_url":"https://api.github.com/users/springload/repos","events_url":"https://api.github.com/users/springload/events{/privacy}","received_events_url":"https://api.github.com/users/springload/received_events","type":"Organization","site_admin":false},"repo":{"id":62028497,"node_id":"MDEwOlJlcG9zaXRvcnk2MjAyODQ5Nw==","name":"draftjs_exporter","full_name":"springload/draftjs_exporter","private":false,"owner":{"login":"springload","id":1691454,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2OTE0NTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1691454?v=4","gravatar_id":"","url":"https://api.github.com/users/springload","html_url":"https://github.com/springload","followers_url":"https://api.github.com/users/springload/followers","following_url":"https://api.github.com/users/springload/following{/other_user}","gists_url":"https://api.github.com/users/springload/gists{/gist_id}","starred_url":"https://api.github.com/users/springload/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/springload/subscriptions","organizations_url":"https://api.github.com/users/springload/orgs","repos_url":"https://api.github.com/users/springload/repos","events_url":"https://api.github.com/users/springload/events{/privacy}","received_events_url":"https://api.github.com/users/springload/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/springload/draftjs_exporter","description":"Library to convert Draft.js ContentState to HTML","fork":false,"url":"https://api.github.com/repos/springload/draftjs_exporter","forks_url":"https://api.github.com/repos/springload/draftjs_exporter/forks","keys_url":"https://api.github.com/repos/springload/draftjs_exporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/springload/draftjs_exporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/springload/draftjs_exporter/teams","hooks_url":"https://api.github.com/repos/springload/draftjs_exporter/hooks","issue_events_url":"https://api.github.com/repos/springload/draftjs_exporter/issues/events{/number}","events_url":"https://api.github.com/repos/springload/draftjs_exporter/events","assignees_url":"https://api.github.com/repos/springload/draftjs_exporter/assignees{/user}","branches_url":"https://api.github.com/repos/springload/draftjs_exporter/branches{/branch}","tags_url":"https://api.github.com/repos/springload/draftjs_exporter/tags","blobs_url":"https://api.github.com/repos/springload/draftjs_exporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/springload/draftjs_exporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/springload/draftjs_exporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/springload/draftjs_exporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/springload/draftjs_exporter/statuses/{sha}","languages_url":"https://api.github.com/repos/springload/draftjs_exporter/languages","stargazers_url":"https://api.github.com/repos/springload/draftjs_exporter/stargazers","contributors_url":"https://api.github.com/repos/springload/draftjs_exporter/contributors","subscribers_url":"https://api.github.com/repos/springload/draftjs_exporter/subscribers","subscription_url":"https://api.github.com/repos/springload/draftjs_exporter/subscription","commits_url":"https://api.github.com/repos/springload/draftjs_exporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/springload/draftjs_exporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/springload/draftjs_exporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/springload/draftjs_exporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/springload/draftjs_exporter/contents/{+path}","compare_url":"https://api.github.com/repos/springload/draftjs_exporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/springload/draftjs_exporter/merges","archive_url":"https://api.github.com/repos/springload/draftjs_exporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/springload/draftjs_exporter/downloads","issues_url":"https://api.github.com/repos/springload/draftjs_exporter/issues{/number}","pulls_url":"https://api.github.com/repos/springload/draftjs_exporter/pulls{/number}","milestones_url":"https://api.github.com/repos/springload/draftjs_exporter/milestones{/number}","notifications_url":"https://api.github.com/repos/springload/draftjs_exporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/springload/draftjs_exporter/labels{/name}","releases_url":"https://api.github.com/repos/springload/draftjs_exporter/releases{/id}","deployments_url":"https://api.github.com/repos/springload/draftjs_exporter/deployments","created_at":"2016-06-27T05:45:36Z","updated_at":"2018-11-20T03:08:09Z","pushed_at":"2018-11-20T08:48:33Z","git_url":"git://github.com/springload/draftjs_exporter.git","ssh_url":"git@github.com:springload/draftjs_exporter.git","clone_url":"https://github.com/springload/draftjs_exporter.git","svn_url":"https://github.com/springload/draftjs_exporter","homepage":"https://www.draftail.org/blog/2018/03/13/rethinking-rich-text-pipelines-with-draft-js","size":481,"stargazers_count":36,"watchers_count":36,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":11,"open_issues":2,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/springload/draftjs_exporter/pulls/108"},"html":{"href":"https://github.com/springload/draftjs_exporter/pull/108"},"issue":{"href":"https://api.github.com/repos/springload/draftjs_exporter/issues/108"},"comments":{"href":"https://api.github.com/repos/springload/draftjs_exporter/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/springload/draftjs_exporter/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/springload/draftjs_exporter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/springload/draftjs_exporter/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/springload/draftjs_exporter/statuses/60220870ea6688b72cca4122e1a38ac26e8500d7"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"thibaudcolas","id":877585,"node_id":"MDQ6VXNlcjg3NzU4NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/877585?v=4","gravatar_id":"","url":"https://api.github.com/users/thibaudcolas","html_url":"https://github.com/thibaudcolas","followers_url":"https://api.github.com/users/thibaudcolas/followers","following_url":"https://api.github.com/users/thibaudcolas/following{/other_user}","gists_url":"https://api.github.com/users/thibaudcolas/gists{/gist_id}","starred_url":"https://api.github.com/users/thibaudcolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thibaudcolas/subscriptions","organizations_url":"https://api.github.com/users/thibaudcolas/orgs","repos_url":"https://api.github.com/users/thibaudcolas/repos","events_url":"https://api.github.com/users/thibaudcolas/events{/privacy}","received_events_url":"https://api.github.com/users/thibaudcolas/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":5,"additions":14,"deletions":14,"changed_files":3}}
{"actor":{"display_login":"thibaudcolas"}}