Skip to content

fix/type stability#63

Merged
leonhaufe merged 1 commit intomainfrom
fix/type-stability
Jan 30, 2025
Merged

fix/type stability#63
leonhaufe merged 1 commit intomainfrom
fix/type-stability

Conversation

@yunseopark-kaist
Copy link
Collaborator

@yunseopark-kaist yunseopark-kaist commented Jan 30, 2025

beforeandafter
defined types for some function retunn values and variables, including preallocation of a vector.

*experiemented codes:
julia>using ProfileView
julia>include("test/test_utils.jl")
julia>include("test/test_recipe_observable.jl") #initial run to make sure that the code works
julia>ProfileView.@profview include("test/test_recipe_observable.jl")

=> result: time reduced from 23.2/15.1 to 16.1/10.2 (first trial/second mesurement), and it was able to remove some of the red lines

@yunseopark-kaist yunseopark-kaist linked an issue Jan 30, 2025 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
src/ParallelPlots.jl 99.08% <100.00%> (+<0.01%) ⬆️

@leonhaufe leonhaufe merged commit 463aee4 into main Jan 30, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

Add Types to variables

3 participants