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

Attempt to improve package loading speeds #116

Merged
merged 6 commits into from
Aug 3, 2023

Conversation

nic-barbara
Copy link
Member

As outlined in #75, I tried removing Flux.jl as a dependency to improve package loading speeds. It speeds things up by about 30%, going from 2.4s to 1.7s in Julia v1.9.

Downside is that we have to re-implement a few common interface things from Flux.jl, like glorot_normal, and to remove Zygote.jl we'd have to re-implement the Buffer and it's adjoints with ChainRulesCore.jl. Not worth it for now.

I've left a note in src/RobustNeuralNetworks.jl on how to remove Flux.jl as a dependency if we want to do this in the future.

@nic-barbara nic-barbara linked an issue Aug 3, 2023 that may be closed by this pull request
@nic-barbara nic-barbara self-assigned this Aug 3, 2023
@nic-barbara nic-barbara merged commit 1006401 into main Aug 3, 2023
3 checks passed
@nic-barbara nic-barbara deleted the 75-improve-package-loading-speed branch August 3, 2023 18:59
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.

Improve package loading speed
1 participant