Make Unitful a weak dependency to improve load time
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- julia
- Domain
- performance
Research direction
Start with the TableMetadataTools package-loading setup and the Julia Package Extensions documentation linked in the issue; use @time_imports with and without Unitful to establish the baseline. Done means Unitful is no longer required for ordinary TableMetadataTools loading while unit-related functionality is available when Unitful is loaded, with the reported load-time cost reduced.
Written by the indexing model from the issue text.
Description
It would be interesting to make Unitful not a required dependency, for example by using Package Extensions to define the unit-related functionality only when Unitful is loaded: https://docs.julialang.org/en/v1/manual/code-loading/#man-extensions
Currently, the Unitful dependency dominates the load time of TableMetadataTools:
julia> Pkg.status()
Status `/tmp/jl_Av2tSv/Project.toml`
[9ce81f87] TableMetadataTools v0.1.0
julia> @time_imports using TableMetadataTools
0.5 ms DataAPI
0.1 ms DataValueInterfaces
0.1 ms IteratorInterfaceExtensions
0.1 ms TableTraits
2.8 ms OrderedCollections
6.8 ms Tables
140.8 ms Unitful
0.3 ms TableMetadataTools
https://docs.julialang.org/en/v1/manual/code-loading/#man-extensions
- Dominant language
- Julia
- Stars
- 19
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaData/TableMetadataTools.jl
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in JuliaData/TableMetadataTools.jl
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
JuliaStats/LogExpFunctions.jl#134 · 2 comments ·
-
code bug PowerSystems 6.0
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Sienna-Platform/PowerSystems.jl#1849 ·
Maintainers usually reply within 7 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
FluxML/Metalhead.jl#407 ·
Maintainers usually reply within 1 day