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

Improve TTFX #19

Merged
merged 2 commits into from
Oct 29, 2024
Merged

Improve TTFX #19

merged 2 commits into from
Oct 29, 2024

Conversation

Tortar
Copy link
Collaborator

@Tortar Tortar commented Oct 27, 2024

I noticed that executing the models in the package requires a lot of time the first time (35 secs for https://github.com/bancaditalia/BeforeIT.jl/blob/main/examples/benchmark_w_matlab.jl#L24). With this it now takes only 2 seconds. We pay now those seconds only at installation time (it is a one time cost vs. before was a all-startup cost)

@AldoGl
Copy link
Collaborator

AldoGl commented Oct 28, 2024

This looks good to me, but could you explain a little bit the trick you implemented?
@Devetak what's your opinion?

@Devetak
Copy link
Collaborator

Devetak commented Oct 28, 2024

It's a good idea. I suggest merging this as it makes testing easier.

@Tortar
Copy link
Collaborator Author

Tortar commented Oct 28, 2024

In practice PrecompileTools.jl can precompile some functions (which you know are used a lot if you are using the package), so you don't need to pay this cost at runtime, see https://julialang.github.io/PrecompileTools.jl/stable/

@AldoGl
Copy link
Collaborator

AldoGl commented Oct 29, 2024

Ok guys, thank you, merging now!

@AldoGl AldoGl merged commit 9b2286b into bancaditalia:main Oct 29, 2024
2 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.

3 participants