Repository navigation
fix: compress the installer with zip so it installs about twice as fast - #39
Merged
Merged
Conversation
Measured on windows-latest: almost all of the install time is spent unpacking TypesetOK.exe (168 MB). zip extracts it far faster than lzma2: fresh install 3.9 s instead of 6.5-8.7 s, build 16 s instead of ~60 s, at the cost of a 100 MB installer instead of 75 MB. Refs TypesetOK#37
Closed
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.
הבעיה
#37: ההתקנה איטית. זה המשך ל-#38, שהחליף את
lzma2/maxב-lzma2והתברר שכמעט לא השפיע.מה מדדתי
בניתי את המתקין של 0.36.1 ב-
windows-latestוהרצתי התקנה שקטה (/VERYSILENT /LOG), שדרוג והסרה, בכמה שיטות כיווס. מדדתי עם Defender בזמן אמת כבוי ודלוק.לפי הלוג של Inno, כמעט כל זמן ההתקנה (כ-5.2 מתוך 7.3 שניות) הולך על פריסת קובץ אחד,
TypesetOK.exe(ה-electron.exe, 168MB). כל השאר זניח: הגופנים לוקחים אלפיות שנייה, RestartManager 0.08 שנייה, ורישום וקיצורי דרך מיידיים. פתיחת המתקין עד החלון הראשון לוקחת פחות משנייה.לכן הצוואר הוא מהירות הפריסה של LZMA, ולא רמת הכיווס.
lzma2/maxמולlzma2כמעט זהים (75MB, בנייה 69 מול 64 שניות).lzma2/max(קודם)lzma2(אחרי #38)zip(ב-PR הזה)noneהתיקון
ברירת המחדל של
CompressionLevelב-scripts/installer.issעוברת ל-zip. ההתקנה מהירה בערך פי 2 והבנייה בערך פי 4, והמתקין גדל ב-25MB (מ-75 ל-100).אם מעדיפים קובץ קטן יותר (למשל בגלל ההורדה דרך המעדכן המובנה), אפשר לבנות עם
/DCompressionLevel=lzma2בלי לשנות קוד.הסתייגויות
zipגדל אצל משתמשים, אבל את זה לא מדדתי.בדיקה
Refs #37