Repository navigation
ביצועים: חישוב כותרות לעמודי תוצאות PDF לפי דרישה - #5336
Merged
Y-PLONI merged 1 commit intoNov 17, 2026
Merged
Conversation
yom-chadash
marked this pull request as ready for review
November 17, 2026 18:34
Y-PLONI
force-pushed
the
perf/pdf-search-result-page-references
branch
from
November 17, 2026 21:45
f0ef620 to
a10c257
Compare
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.
מה השינוי?
החיפוש בספר PDF מחשב את כתובת העמוד כשכותרת הקבוצה נבנית ברשימת התוצאות. הכותרות משתמשות באינדקס
PdfPageReferenceLookupאחד לכל תוכן עניינים ושם ספר. הכתובת נשמרת לאחר החישוב הראשון, ומופיעה כותרת ״עמוד N״ כשהכתובת ריקה. שינוי תוכן העניינים, שם הספר או מופע החיפוש מאפס את המטמון.מדידה
ב־Dart 3.13.5 עם תוכן עניינים מדומה של 10,100 צמתים ו־5,000 עמודי תוצאות, חציון שבע ריצות היה 1,111 מ״ש לסריקות המקוריות מול 4.2 מ״ש לבניית האינדקס ולכל הכתובות, או 0.68 מ״ש לאינדקס ו־12 הכותרות הראשונות. נבדקה זהות הטקסט בכל 5,000 הכתובות. המדידה כוללת את חישוב הכותרות בלבד.
בדיקות
git show --checkעבר.flutter analyzeטרם הושלמו עקב התקנת תלויות Flutter.חפיפה
devב־semantic_test_support.dartגם בלי ה־PR הזה.השינוי מוצע לסקירת ביצועים. הסכמה לתנאי העברת הזכויות, הרישוי הבלעדי והוויתור שב־README טעונה אישור מפורש של בעל החשבון.