Skip to content
New issue

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

Reduced the number of calls to generic_getLinks. #162

Merged
merged 1 commit into from
Sep 23, 2020

Conversation

MiguelRocha
Copy link
Contributor

Refactored generic_getLinks to parse all src and href type links.
Removed getDependencies()
Make zimcheck call generic_getLinks only once

@codecov
Copy link

codecov bot commented Sep 20, 2020

Codecov Report

Merging #162 into master will increase coverage by 0.16%.
The diff coverage is 38.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #162      +/-   ##
==========================================
+ Coverage   24.53%   24.70%   +0.16%     
==========================================
  Files          18       19       +1     
  Lines        2001     2004       +3     
  Branches     1124     1126       +2     
==========================================
+ Hits          491      495       +4     
+ Misses       1510     1509       -1     
Impacted Files Coverage Δ
src/zimcheck.cpp 0.00% <0.00%> (ø)
src/tools.cpp 85.95% <100.00%> (+0.18%) ⬆️
src/tools.h 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d0a77a...9387ae7. Read the comment docs.

@MiguelRocha MiguelRocha changed the title Removed the number of calls to generic_getLinks. Reduced the number of calls to generic_getLinks. Sep 20, 2020
@MiguelRocha MiguelRocha linked an issue Sep 20, 2020 that may be closed by this pull request
@kelson42
Copy link
Contributor

@MiguelRocha Do we have a ticket for that? Is that a speed-up PR?

Copy link
Collaborator

@mgautierfr mgautierfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small change about where we initialize links.
But else we are ok.

src/zimcheck.cpp Outdated Show resolved Hide resolved
src/tools.h Show resolved Hide resolved
Refactored generic_getLinks to parse all src and href type links.
Removed getDependencies()
Make zimcheck call generic_getLinks only once
@MiguelRocha
Copy link
Contributor Author

@MiguelRocha Do we have a ticket for that? Is that a speed-up PR?

Yes it is the first point of #134

@mgautierfr mgautierfr merged commit c8f212f into master Sep 23, 2020
@mgautierfr mgautierfr deleted the reduce_getlinks_call branch September 23, 2020 09:32
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.

zimcheck performance improvement
3 participants