{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaStats/DataArrays.jl/issues/156","labels_url":"https://api.github.com/repos/JuliaStats/DataArrays.jl/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/JuliaStats/DataArrays.jl/issues/156/comments","events_url":"https://api.github.com/repos/JuliaStats/DataArrays.jl/issues/156/events","html_url":"https://github.com/JuliaStats/DataArrays.jl/issues/156","id":91976521,"number":156,"title":"DataArray creation takes a lot of time ( > 90% ) in gc","user":{"login":"diegozea","id":2822757,"avatar_url":"https://avatars.githubusercontent.com/u/2822757?v=3","gravatar_id":"","url":"https://api.github.com/users/diegozea","html_url":"https://github.com/diegozea","followers_url":"https://api.github.com/users/diegozea/followers","following_url":"https://api.github.com/users/diegozea/following{/other_user}","gists_url":"https://api.github.com/users/diegozea/gists{/gist_id}","starred_url":"https://api.github.com/users/diegozea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegozea/subscriptions","organizations_url":"https://api.github.com/users/diegozea/orgs","repos_url":"https://api.github.com/users/diegozea/repos","events_url":"https://api.github.com/users/diegozea/events{/privacy}","received_events_url":"https://api.github.com/users/diegozea/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-30T04:21:36Z","updated_at":"2015-07-01T00:52:29Z","closed_at":"2015-07-01T00:52:29Z","body":"A lot of time of the DataArray creation is expending in gc:\r\n\r\n```\r\njulia> N\r\n49995000\r\n\r\njulia> @time DataArray(Int64,N);\r\nelapsed time: 0.02847832 seconds (406209664 bytes allocated, 95.39% gc time)\r\n\r\njulia> @time Array(Int64,N);\r\nelapsed time: 0.028881989 seconds (399960128 bytes allocated)\r\n\r\njulia> @time @data Array(Int64,N);\r\nelapsed time: 4.363938826 seconds (1106819304 bytes allocated, 9.04% gc time)\r\n\r\njulia> @time DataFrame(i=DataArray(Int64,N), j=DataArray(Int64,N), score=DataArray(Int64,N));\r\nelapsed time: 0.077868808 seconds (1218630072 bytes allocated, 97.10% gc time)\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaStats/DataArrays.jl/issues/comments/117380977","html_url":"https://github.com/JuliaStats/DataArrays.jl/issues/156#issuecomment-117380977","issue_url":"https://api.github.com/repos/JuliaStats/DataArrays.jl/issues/156","id":117380977,"user":{"login":"diegozea","id":2822757,"avatar_url":"https://avatars.githubusercontent.com/u/2822757?v=3","gravatar_id":"","url":"https://api.github.com/users/diegozea","html_url":"https://github.com/diegozea","followers_url":"https://api.github.com/users/diegozea/followers","following_url":"https://api.github.com/users/diegozea/following{/other_user}","gists_url":"https://api.github.com/users/diegozea/gists{/gist_id}","starred_url":"https://api.github.com/users/diegozea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegozea/subscriptions","organizations_url":"https://api.github.com/users/diegozea/orgs","repos_url":"https://api.github.com/users/diegozea/repos","events_url":"https://api.github.com/users/diegozea/events{/privacy}","received_events_url":"https://api.github.com/users/diegozea/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T00:52:29Z","updated_at":"2015-07-01T00:52:29Z","body":"Yes, It isn't a DataArrays' problem:\r\n\r\n```\r\njulia> @time Array(Int64,N);\r\nelapsed time: 0.024376011 seconds (399960128 bytes allocated)\r\n\r\njulia> @time trues(N);\r\nelapsed time: 0.001718419 seconds (6249560 bytes allocated)\r\n\r\njulia> @time (Array(Int64,N), trues(N));\r\nelapsed time: 0.025188065 seconds (406209640 bytes allocated, 97.54% gc time)\r\n```\r\n\r\nThanks!"}}