Hecke.jl icon indicating copy to clipboard operation
Hecke.jl copied to clipboard

Documentation slow to build

Open albinahlback opened this issue 4 years ago • 4 comments

Pretty irrelevant, but

@time include("make.jl")
...
251.851335 seconds (327.10 M allocations: 16.274 GiB, 2.72% gc time)

How can I speed things up?

albinahlback avatar Feb 17 '21 21:02 albinahlback

using Revise, Hecke and then run the documentation repeatedly in the same julia session helps. The second time round is (of course) much faster.

fieker avatar Feb 18 '21 06:02 fieker

Hmm, but I think that only helps me after I've run it once.

albinahlback avatar Feb 18 '21 11:02 albinahlback

Yes. The problem is that building the documentation runs julia/Hecke code to produce examples. There are some blocks of the form

```runthiscode
  Qx, x = QQ["x"]
  K, ...
```

which get evaluated and then the output is inserted in the documentation. One could remove this at the cost, that the examples could diverge from the actual output.

thofma avatar Feb 18 '21 11:02 thofma

On Thu, Feb 18, 2021 at 03:43:28AM -0800, Albin Ahlbäck wrote:

Hmm, but I think that only helps me after I've run it once.

Yep, the first time round it has to compile Hecke (and Doumenter and such)

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/thofma/Hecke.jl/issues/167#issuecomment-781285365

fieker avatar Feb 18 '21 11:02 fieker