8000 Fix: performance regression from #303 by LKedward · Pull Request #335 · fortran-lang/fpm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix: performance regression from #303 #335

New issue < 8000 details-dialog class="Box Box--overlay d-flex flex-column anim-fade-in fast overflow-auto" aria-label="Sign up for GitHub">

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 6, 2021
Merged

Fix: performance regression from #303 #335

merged 1 commit into from
Jan 6, 2021

Conversation

LKedward
Copy link
Member
@LKedward LKedward commented Jan 3, 2021

33ad2ce (#303) introduced a severe performance regression when checking for empty source files during the source parsing phase. This is particularly noticeable on Windows.

This PR adds a string_len_trim routine to check for empty source files instead of inefficiently using string_cat.

I see 5-10x improvement in the time to construct the model from this PR for a project with ~80 source files.

Fixes performance regression from 33ad2ce. Don't use string_cat for checking for empty source files.
@awvwgk
Copy link
Member
awvwgk commented Jan 6, 2021

I'm going ahead and merge this PR.

@awvwgk awvwgk merged commit cf49f39 into fortran-lang:master Jan 6, 2021
@LKedward LKedward deleted the parse-perf branch March 6, 2021 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0