Improve the speed for loading the GMT.jl package

Open
#9 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, julia

Research direction

Inspect the Docker image build configuration and the Julia package-loading command suggested in the issue. Test whether running julia -e "using GMT" during the image build removes the first-use delay, and verify that using GMT starts faster for users after the image is built.

Written by the indexing model from the issue text.

Description

help wanted

Loading the GMT.jl package (using GMT) is very slow (~10 s) for the first time, because Julia needs to precompile the GMT.jl package. It would be better to precompile the package when building the docker image, so that the package is already precompiled when users run using GMT.

As I understand it, running julia -e "using GMT" may do the precompiling.

@joa-quim Is it correct? Is there a way to precompile all Julia packages?

Dominant language
Jupyter Notebook
Stars
59
Forks
20
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenericMappingTools/try-gmt

All issues in GenericMappingTools/try-gmt

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.