Repository navigation
perf(extract): skip PDFium image crops when no stage reads them - #2841
Merged
Merged
Conversation
Signed-off-by: Jacob Ioffe <jioffe@nvidia.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
…raphIngestor Signed-off-by: Jacob Ioffe <jioffe@nvidia.com>
Contributor
There was a problem hiding this comment.
Note
Newer findings are available below. Devin Review posted a newer report on this PR, in addition to the findings presented here.
Devin Review found 1 finding. It is left for you to triage below.
…made Signed-off-by: Jacob Ioffe <jioffe@nvidia.com>
Contributor
[Medium impact] This PR appears safe to merge. SummaryThis PR skips PDFium image-region crops when no configured stage needs them.
Reviews (4) · Last reviewed commit: "Merge branch 'main' into jioffe/skip-unu..." · Reviewed by Greptile |
With extract_images resolved off, native-text pages under pdfium_hybrid lost page_image, but page elements and OCR still read it on every page. Render whenever those stages run; only the crops stay skipped. Signed-off-by: Jacob Ioffe <jioffe@nvidia.com>
Signed-off-by: Jacob Ioffe <jioffe@nvidia.com>
3 tasks done
edknv
approved these changes
Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On
main,extract_imagesdefaults to on. It crops image regions out of every PDF page into theimagescolumn, but only caption, dedup and the image store read that column, and none of them run by default.This PR skips the crops unless one of those stages is configured or
extract_images=Trueis set. The docs now say what the flag does, and that it doesn't affect the page render (extract_page_as_image) used by page elements, OCR and image embedding.main vs this PR (NRB, 8× RTX PRO 6000, BF16)
Rows by type are unchanged (within run-to-run noise). PDF-extraction CPU halves; pps is flat where extraction isn't the bottleneck. A follow-up will put the freed CPU to use.
¹ Mean of 2 runs.
Link to Devin session: https://nvidia-cloud.devinenterprise.com/sessions/57f5368b39844a038449e009f6bdd631
Open in Devin Desktop: https://nvidia-cloud.devinenterprise.com/desktop/session/57f5368b39844a038449e009f6bdd631?variant=devin
Requested by: @jioffe502
🟢 Devin Review found nothing to fix · View findings · Follow Devin's work