Skip to content

Commit

Permalink
minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
daler committed Nov 19, 2023
1 parent bec930c commit c5e8956
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 7 additions & 6 deletions source/faqs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,37 +44,38 @@ Speedup option 2: use environments strategically
Here are several ways you can use environments to minimize the time spent on
solving dependencies, which typically is what takes the longest amount of time:

1. Keep the ``base`` environment small.
1. **Keep the base environment small.**

If you install everything into the same environment (e.g. the ``base``
environment, which is used any time you don't otherwise specify an
environment), then whenever you add or update packages to it, the solver has
to do a lot of work to make sure all of the many packages are mutually
compatible with each other.

2. Use smaller environments.
2. **Use smaller environments.**

Fewer packages means less work for the solver. Try to use environments only
containing what you need for a particular project or task.

3. Pin dependencies.
3. **Pin dependencies.**

Sometimes pinning dependencies to a specific version can speed up the
solving, since it reduces the search space for the solver. In some cases
this may backfire though. For example, you can't pin an older version of
R and also use newer R packages that don't support that version of R.

4. Create an environment from a file with all dependencies.
4. **Create an environment from a file with all dependencies.**

Creating an environment with all dependencies at once can be faster than
incrementally adding packages to an existing environment. For example
``conda create -n myenv --file requirements.txt``, or ``conda env create
--file env.yaml``.

5. Use strict channel priority.
5. **Use strict channel priority.**

Ensure that you've run ``conda config --set channel_priority strict`` to
respect the configured channel order. This can also speed up the solving.
respect the configured channel order, as recommended in the setup
instructions. This can also speed up the solving.

What versions are supported?
----------------------------
Expand Down
2 changes: 0 additions & 2 deletions source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,6 @@ wonderful community which includes over 1800 (as of 2023) `contributors
<https://github.com/bioconda/bioconda-recipes/graphs/contributors>`_.




Table of contents
=================

Expand Down

0 comments on commit c5e8956

Please sign in to comment.