Skip to content

Performance issue with "fpm build" #554

Closed
@oyvindyr

Description

@oyvindyr

First of all: Thank you for your effort in making it easier to build Fortran programs!

I have started experiencing with fpm and have made a small fpm project that depends on stdlib. I know fpm does not yet support building of stdlib and pre-processed code (fypp) in general. So I made a branch of stdlib where I generate .f90 files of all the .fypp files and let my project depend on this branch instead. I included a minimal .toml file and run "fpm build". At first I got an out-of-memory error in gfortran that I resolved by setting the MAXRANK parameter to 4 in common.fypp. Then it works!

As expected, building everything takes quite some time. But it also takes some time (about 10 seconds) before the compilation starts. Running fpm build again (without modifying any source code) takes again about 10 seconds before finishing, without any compilation taking place. I tried to replace the dependency to the git branch with a dependency to a local folder, but that did not help the performance issue.

Is it the reading of all source files to sort out the dependencies that takes time? If so, it should perhaps be possible to tell fpm that no dependencies have changes since the last build? That would be useful when only making changes within a subroutine.

I am running windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions