Repository navigation
תוספים: שיתוף טעינת ספר בין בקשות מקבילות לאותו ספר - #4876
Merged
Merged
Conversation
3 tasks done
library.getBookContent פטורה ממגביל הקצב, וכל קריאה לספר שאינו במטמון טוענת את הספר כולו. תוסף שמבקש ספרים רבים במקביל החזיק את כולם בזיכרון בבת אחת (300 ספרים של מיליון תווים: +532MB ועצירת UI של 1.9 שניות), וחתיכות מקבילות של אותו ספר טענו אותו מחדש בכל קריאה (200 חתיכות = 200 טעינות). כעת קריאות מקבילות לאותו ספר חולקות טעינה אחת דרך המטמון, ולכל תוסף רצות לכל היותר 4 טעינות ספר שלם בו-זמנית, גם לספר שנטען לפי שם בלבד. הגבול לכל תוסף ולא גלובלי, כדי שטעינות תקועות של תוסף אחד לא יעכבו תוסף אחר או הדפסה, וסגירת התוסף מבטלת טעינות שממתינות בתור. חוזה ה-API לא השתנה. Refs #4865
Y-PLONI
force-pushed
the
fix/plugin-book-content-memory
branch
from
November 11, 2026 20:45
ab9c80e to
15f2186
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.
השינוי
בקשות מקבילות של תוסף ל־
library.getBookContentחולקות קריאה אחת כשהן מתייחסות לאותוbookUid. טעינות פעילות נפרדות מהמטמון של ארבע תוצאות, ולכן בקשות לספרים אחרים אינן מפנות טעינה פעילה מהמטמון וגורמות לקריאה כפולה.בקשות לספרים שונים מתחילות בלי תור. כשל מאפשר ניסיון חוזר, ותום חלון השיתוף, שחרור WebView או שינוי גרסת תוכן מאפשרים לטעון מחדש בלי שתוצאה ישנה תחליף את התוצאה החדשה. חלון השיתוף אינו מגביל את משך ההדפסה.
אימות
בתרחיש של שבעה ספרים ועשרים בקשות נוספות לאחד מהם, מספר הקריאות ירד מ־27 ב־
devל־7. נבדקו גם בקשה מהירה במקביל לארבע טעינות חסומות, ניסיון חוזר אחרי כשל ותפוגה, שחרור WebView, והדפסה מעבר ל־30 שניות.flutter analyzeו־729 בדיקות גשר עברו. אין קונפליקט טקסטואלי מול #4833 ו־#4777.#4865 נשאר פתוח. התקיעה שדווחה ב־Windows עדיין לא שוחזרה, והשינוי מתמקד בקריאות כפולות לאותו ספר.