Using Oscar takes a long time to import (~1 minute) — Is this expected behavior?

Hello,

I noticed that importing the Oscar.jl package in Julia using using Oscar takes quite a long time, around a minute. Here’s a simple reproducible example:

julia

Copy code

@time using Oscar

On my machine, it consistently takes around 60 seconds. This delay makes it inconvenient for interactive use.

Is this expected behaviour?

Thanks.

I’m seeing around 15 seconds on my machine (20 × 13th Gen Intel(R) Core(TM) i7-13800H, running in WSL2) so I wouldn’t say 60 seconds is completely unexpected on weaker hardware?

If this is a deal braker for you then maybe consider building a system image with Oscar (although I don’t know anything about Oscar, not sure how much system images help given that according to @time only <20% of the using time is compilation)

Thank you for your prompt response!

I should have mentioned my specifications earlier—here they are:
Intel(R) Core™ Ultra 7 165U @ 2.10 GHz
** I’m also working on WSL.

As for the issue, it ties into another post of mine. I need to work with ideals involving rational coefficients, and Oscar seems to be the only viable option at the moment. I’ll give your solution a try—thank you again!