Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Int32, Bool, etc table creation is very slow #255

Open
MaximilianJHuber opened this issue Jun 27, 2019 · 0 comments
Open

Int32, Bool, etc table creation is very slow #255

MaximilianJHuber opened this issue Jun 27, 2019 · 0 comments

Comments

@MaximilianJHuber
Copy link

test2 is slower than test1 by a factor of 20:

using BenchmarkTools, JuliaDB, IndexedTables
function test2()
    t = table((id = Int64[], value1 = Float64[], value2 = Int32[]))
    for i in 1:100000
        IndexedTables.push!(rows(t), (id = i, value1 = 1/i, value2 = Int32(1)))
    end
    
    return t
end
@btime test2()
using BenchmarkTools, JuliaDB, IndexedTables
function test1()
    t = table((id = Int64[], value1 = Float64[], value2 = Int64[]))
    for i in 1:100000
        IndexedTables.push!(rows(t), (id = i, value1 = 1/i, value2 = Int64(1)))
    end
    
    return t
end
@btime test1()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant