-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from mrufsvold/develop
1.1.0
- Loading branch information
Showing
16 changed files
with
1,382 additions
and
743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
name = "ExpandNestedData" | ||
uuid = "8a7d223a-a7dc-4abf-8bc1-b0ce2ace9adc" | ||
authors = ["Micah Rufsvold <[email protected]>"] | ||
version = "1.0.0" | ||
version = "1.1.0" | ||
|
||
[deps] | ||
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20" | ||
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" | ||
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568" | ||
PooledArrays = "2dfb63ee-cc39-5dd5-95bd-886bf059d720" | ||
StructTypes = "856f2bd8-1eba-4b0a-8007-ebc267875bd4" | ||
SumTypes = "8e1ec7a9-0e02-4297-b0fe-6433085c89f2" | ||
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c" | ||
TypedTables = "9d95f2ec-7b3d-5a63-8d20-e2491e220bb9" | ||
|
||
[compat] | ||
DataStructures = "0.18" | ||
Compat = "3.42, 4" | ||
DataStructures = "0.18.14" | ||
PooledArrays = "1.4" | ||
StructTypes = "1.10" | ||
Tables = "1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using ExpandNestedData | ||
|
||
small_dict = Dict( | ||
:a => 1, | ||
:b => "2", | ||
:c => Dict(:e => Symbol(3), :f => 4) | ||
) | ||
|
||
|
||
many_records = [ | ||
small_dict | ||
for _ in 1:1000 | ||
] | ||
|
||
function make_deep_dict(depth=1) | ||
if depth == 1 | ||
return Dict(Symbol(depth) => 1) | ||
end | ||
return Dict( | ||
Symbol(i) => make_deep_dict(depth-1) | ||
for i in 1:3 | ||
) | ||
end | ||
|
||
# @btime expand($small_dict; lazy_columns=true, column_style=:nested) | ||
# @profview ExpandNestedData.expand(small_dict; lazy_columns=true, column_style=:nested); | ||
# deep_dict = make_deep_dict(10) | ||
# @btime expand($deep_dict; lazy_columns=true, column_style=:nested); | ||
# @descend expand(many_records; lazy_columns=true, column_style=:nested) | ||
# @profview ExpandNestedData.expand(many_records; lazy_columns=true, column_style=:nested) | ||
# @profview_allocs ExpandNestedData.expand(many_records; lazy_columns=true, column_style=:nested) | ||
# @btime expand($many_records; lazy_columns=true, column_style=:nested); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
d818a3b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
d818a3b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/87059
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: