{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/11004","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/11004/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/11004/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/11004/events","html_url":"https://github.com/JuliaLang/julia/pull/11004","id":70875968,"number":11004,"title":"Fix performance issues with UTF conversions (#10959)","user":{"login":"ScottPJones","id":11798751,"avatar_url":"https://avatars.githubusercontent.com/u/11798751?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottPJones","html_url":"https://github.com/ScottPJones","followers_url":"https://api.github.com/users/ScottPJones/followers","following_url":"https://api.github.com/users/ScottPJones/following{/other_user}","gists_url":"https://api.github.com/users/ScottPJones/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottPJones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottPJones/subscriptions","organizations_url":"https://api.github.com/users/ScottPJones/orgs","repos_url":"https://api.github.com/users/ScottPJones/repos","events_url":"https://api.github.com/users/ScottPJones/events{/privacy}","received_events_url":"https://api.github.com/users/ScottPJones/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/unicode","name":"unicode","color":"5f4a60"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":256,"created_at":"2015-04-25T08:18:36Z","updated_at":"2015-05-27T22:47:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/11004","html_url":"https://github.com/JuliaLang/julia/pull/11004","diff_url":"https://github.com/JuliaLang/julia/pull/11004.diff","patch_url":"https://github.com/JuliaLang/julia/pull/11004.patch"},"body":"Rewrote a number of the conversions between ASCIIString, UTF8String,\nUTF16String, and UTF32String, and also rewrote length() for\nUTF16String()."},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/106101852","html_url":"https://github.com/JuliaLang/julia/pull/11004#issuecomment-106101852","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/11004","id":106101852,"user":{"login":"mbauman","id":154641,"avatar_url":"https://avatars.githubusercontent.com/u/154641?v=3","gravatar_id":"","url":"https://api.github.com/users/mbauman","html_url":"https://github.com/mbauman","followers_url":"https://api.github.com/users/mbauman/followers","following_url":"https://api.github.com/users/mbauman/following{/other_user}","gists_url":"https://api.github.com/users/mbauman/gists{/gist_id}","starred_url":"https://api.github.com/users/mbauman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbauman/subscriptions","organizations_url":"https://api.github.com/users/mbauman/orgs","repos_url":"https://api.github.com/users/mbauman/repos","events_url":"https://api.github.com/users/mbauman/events{/privacy}","received_events_url":"https://api.github.com/users/mbauman/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T22:47:40Z","updated_at":"2015-05-27T22:47:40Z","body":"Ah, right, of course.  Is it really that unreasonable to include some sort of simple work along with the test?  If you'll note, the RegEx doesn't even appear as a blip on the profile.  In any case, here I've corrected that mistake, and there's more work to be done, so the test file doesn't need to be as large to get reasonable counts.  (This is with 10^7):\r\n\r\n```jl\r\njulia> function test()\r\n          fd = open(\"test.txt\")\r\n          b = readbytes(fd)\r\n          u = UTF16String(b)\r\n          s = convert(UTF8String, u)\r\n          r = ismatch(r\"doesn't match\", s)\r\n          close(fd)\r\n          r\r\n       end\r\ntest (generic function with 1 method)\r\n\r\njulia> Profile.print()\r\n478 task.jl; anonymous; line: 91\r\n 478 REPL.jl; eval_user_input; line: 62\r\n  478 profile.jl; anonymous; line: 16\r\n   3   none; test; line: 3\r\n    3 io.jl; readbytes; line: 243\r\n     3 iostream.jl; readbytes!; line: 223\r\n      3 ...4/lib/julia/sys.dylib; resize!; (unknown line)\r\n   10  none; test; line: 4\r\n    2 utf16.jl; convert; line: 130\r\n     2 array.jl; reinterpret; line: 109\r\n      2 array.jl; reinterpret; line: 130\r\n    8 utf16.jl; convert; line: 145\r\n     2 utf16.jl; isvalid; line: 102\r\n     1 utf16.jl; isvalid; line: 103\r\n     5 utf16.jl; isvalid; line: 104\r\n   465 none; test; line: 5\r\n    465 utf16.jl; convert; line: 91\r\n     465 ...4/lib/julia/sys.dylib; sprint; (unknown line)\r\n      18  .../lib/julia/sys.dylib; bytestring; (unknown line)\r\n      437 utf16.jl; anonymous; line: 92\r\n       231 ...lib/julia/sys.dylib; write; (unknown line)\r\n        224 ...lib/julia/sys.dylib; write; (unknown line)\r\n         151 ...lib/julia/sys.dylib; ensureroom; (unknown line)\r\n          47 ...lib/julia/sys.dylib; resize!; (unknown line)\r\n       4   utf16.jl; endof; line: 30\r\n       6   utf16.jl; endof; line: 31\r\n       11  utf16.jl; endof; line: 33\r\n       4   utf16.jl; next; line: 37\r\n       7   utf16.jl; next; line: 38\r\n       3   utf16.jl; next; line: 40\r\n      4   utf16.jl; next; line: 38\r\n4   utf16.jl; endof; line: 30\r\n3   utf16.jl; next; line: 37"}}