{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/12909","repository_url":"https://api.github.com/repos/pydata/pandas","labels_url":"https://api.github.com/repos/pydata/pandas/issues/12909/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/12909/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/12909/events","html_url":"https://github.com/pydata/pandas/pull/12909","id":148897530,"number":12909,"title":"Fix performance issues when creating multiple instances of Period (#12903, #11831)","user":{"login":"rs2","id":4407787,"avatar_url":"https://avatars.githubusercontent.com/u/4407787?v=3","gravatar_id":"","url":"https://api.github.com/users/rs2","html_url":"https://github.com/rs2","followers_url":"https://api.github.com/users/rs2/followers","following_url":"https://api.github.com/users/rs2/following{/other_user}","gists_url":"https://api.github.com/users/rs2/gists{/gist_id}","starred_url":"https://api.github.com/users/rs2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rs2/subscriptions","organizations_url":"https://api.github.com/users/rs2/orgs","repos_url":"https://api.github.com/users/rs2/repos","events_url":"https://api.github.com/users/rs2/events{/privacy}","received_events_url":"https://api.github.com/users/rs2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Performance","name":"Performance","color":"a10c02"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Period","name":"Period","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-04-16T22:08:18Z","updated_at":"2016-04-26T14:47:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pydata/pandas/pulls/12909","html_url":"https://github.com/pydata/pandas/pull/12909","diff_url":"https://github.com/pydata/pandas/pull/12909.diff","patch_url":"https://github.com/pydata/pandas/pull/12909.patch"},"body":"closes #12903\r\ncloses #11831  \r\n\r\n - [x] tests added / passed\r\n - [x] passes ``git diff upstream/master | flake8 --diff``\r\n - [x] whatsnew entry\r\n"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/214769625","html_url":"https://github.com/pydata/pandas/pull/12909#issuecomment-214769625","issue_url":"https://api.github.com/repos/pydata/pandas/issues/12909","id":214769625,"user":{"login":"rs2","id":4407787,"avatar_url":"https://avatars.githubusercontent.com/u/4407787?v=3","gravatar_id":"","url":"https://api.github.com/users/rs2","html_url":"https://github.com/rs2","followers_url":"https://api.github.com/users/rs2/followers","following_url":"https://api.github.com/users/rs2/following{/other_user}","gists_url":"https://api.github.com/users/rs2/gists{/gist_id}","starred_url":"https://api.github.com/users/rs2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rs2/subscriptions","organizations_url":"https://api.github.com/users/rs2/orgs","repos_url":"https://api.github.com/users/rs2/repos","events_url":"https://api.github.com/users/rs2/events{/privacy}","received_events_url":"https://api.github.com/users/rs2/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T14:47:13Z","updated_at":"2016-04-26T14:47:13Z","body":"### `asv` benchmarks\r\n\r\nFrom 5.89s to 525ms:\r\n\r\n#### Before the change:\r\n```\r\n~/pandas_master/asv_bench$ asv dev -b create_period\r\n· Discovering benchmarks\r\n· Running 1 total benchmarks (1 commits * 1 environments * 1 benchmarks)\r\n[  0.00%] ·· Building for /home/pashok/anaconda3/bin/python\r\n[  0.00%] ·· Benchmarking /home/pashok/anaconda3/bin/python\r\n[100.00%] ··· Running period.create_period_index_from_date_range.time_period_index                                                                                                    5.89s\r\n```\r\n\r\n#### After the change\r\n```\r\n~/pandas/asv_bench$ asv dev -b create_period\r\n· Discovering benchmarks\r\n· Running 1 total benchmarks (1 commits * 1 environments * 1 benchmarks)\r\n[  0.00%] ·· Building for /home/pashok/anaconda3/bin/python\r\n[  0.00%] ·· Benchmarking /home/pashok/anaconda3/bin/python\r\n[100.00%] ··· Running period.create_period_index_from_date_range.time_period_index                                                                                   525.84ms\r\n```"}}