{"action":"created","issue":{"url":"https://api.github.com/repos/googlei18n/nototools/issues/205","repository_url":"https://api.github.com/repos/googlei18n/nototools","labels_url":"https://api.github.com/repos/googlei18n/nototools/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/googlei18n/nototools/issues/205/comments","events_url":"https://api.github.com/repos/googlei18n/nototools/issues/205/events","html_url":"https://github.com/googlei18n/nototools/issues/205","id":141516275,"number":205,"title":"unicode_data.py to use unicodedata2","user":{"login":"twardoch","id":519108,"avatar_url":"https://avatars.githubusercontent.com/u/519108?v=3","gravatar_id":"","url":"https://api.github.com/users/twardoch","html_url":"https://github.com/twardoch","followers_url":"https://api.github.com/users/twardoch/followers","following_url":"https://api.github.com/users/twardoch/following{/other_user}","gists_url":"https://api.github.com/users/twardoch/gists{/gist_id}","starred_url":"https://api.github.com/users/twardoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twardoch/subscriptions","organizations_url":"https://api.github.com/users/twardoch/orgs","repos_url":"https://api.github.com/users/twardoch/repos","events_url":"https://api.github.com/users/twardoch/events{/privacy}","received_events_url":"https://api.github.com/users/twardoch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-17T08:43:07Z","updated_at":"2016-03-17T09:43:10Z","closed_at":null,"body":"I see that [unicode_data.py](https://github.com/googlei18n/nototools/blob/master/nototools/unicode_data.py) is doing: \r\n```\r\nimport unicodedata  # Python's internal library\r\n```\r\n\r\nIt would be more efficient to do: \r\n```\r\ntry: \r\n  import unicodedata2 as unicodedata\r\nexcept ImportError: \r\n  import unicodedata\r\n```\r\n\r\n`unicodedata2` is a C++ Python 2.7-compatible \"unicodedata\" replacement (Apache2-licensed) which is currently at Unicode 8.0. So the \"inefficient\" lookups done in pure Python could be sped up if that library was used:\r\nhttps://github.com/mikekap/unicodedata2\r\nhttps://pypi.python.org/pypi/unicodedata2\r\n"},"comment":{"url":"https://api.github.com/repos/googlei18n/nototools/issues/comments/197790970","html_url":"https://github.com/googlei18n/nototools/issues/205#issuecomment-197790970","issue_url":"https://api.github.com/repos/googlei18n/nototools/issues/205","id":197790970,"user":{"login":"anthrotype","id":6939968,"avatar_url":"https://avatars.githubusercontent.com/u/6939968?v=3","gravatar_id":"","url":"https://api.github.com/users/anthrotype","html_url":"https://github.com/anthrotype","followers_url":"https://api.github.com/users/anthrotype/followers","following_url":"https://api.github.com/users/anthrotype/following{/other_user}","gists_url":"https://api.github.com/users/anthrotype/gists{/gist_id}","starred_url":"https://api.github.com/users/anthrotype/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthrotype/subscriptions","organizations_url":"https://api.github.com/users/anthrotype/orgs","repos_url":"https://api.github.com/users/anthrotype/repos","events_url":"https://api.github.com/users/anthrotype/events{/privacy}","received_events_url":"https://api.github.com/users/anthrotype/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T09:43:10Z","updated_at":"2016-03-17T09:43:10Z","body":"Please ignore my comments above. I just realised Adam wasn't referring to the inefficiency of the built-in `unicodedata`, but to the fact that one has to parse the huge text files to get unicode data which is up to date."}}