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

Fix performance of countPages in thumbnail lambda #2616

Merged
merged 2 commits into from
Jan 18, 2022
Merged

Conversation

sir-sigurd
Copy link
Member

@sir-sigurd sir-sigurd commented Jan 18, 2022

Description

Use pdfinfo output instead of rendering all pages to count pages.

TODO

@codecov
Copy link

codecov bot commented Jan 18, 2022

Codecov Report

Merging #2616 (2bdef2b) into master (c6e6d64) will increase coverage by 0.01%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2616      +/-   ##
==========================================
+ Coverage   41.98%   41.99%   +0.01%     
==========================================
  Files         532      532              
  Lines       24599    24593       -6     
  Branches     3334     3334              
==========================================
+ Hits        10327    10328       +1     
+ Misses      13507    13500       -7     
  Partials      765      765              
Flag Coverage Δ
api-python 90.26% <ø> (ø)
catalog 13.42% <ø> (ø)
lambda 88.09% <50.00%> (+0.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lambdas/thumbnail/index.py 83.96% <50.00%> (+4.40%) ⬆️

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 c6e6d64...2bdef2b. Read the comment docs.

@sir-sigurd sir-sigurd requested review from nl0 and akarve January 18, 2022 05:30
@sir-sigurd sir-sigurd merged commit e8ff056 into master Jan 18, 2022
@sir-sigurd sir-sigurd deleted the pdf-pages-count branch January 18, 2022 10:48
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.

3 participants