{"action":"closed","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/10959","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/10959/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/10959/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/10959/events","html_url":"https://github.com/JuliaLang/julia/issues/10959","id":70430799,"number":10959,"title":"Poor performance (and excessive garbage collection) in utf8/utf16/utf32 conversion functions","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/performance","name":"performance","color":"d7e102"},{"url":"https://api.github.com/repos/JuliaLang/julia/labels/unicode","name":"unicode","color":"5f4a60"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-04-23T14:46:24Z","updated_at":"2015-07-01T03:18:56Z","closed_at":"2015-07-01T03:18:56Z","body":"These all tend to be rather slow because they create an empty array, and append to it 1 character at a time... also, instead of having specific converters for things like:\r\nASCIIString -> UTF16String, UTF8String -> UTF16String, UTF32String -> UTF16String\r\nASCIIString -> UTF32String, UTF8String -> UTF32String, UTF16String -> UTF32String\r\nthese are handled by a single generic function (encode16 for UTF16String)"}}