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

Optimize QidianParser.js for smaller files. #1363

Merged
merged 1 commit into from
Jun 30, 2024

Conversation

Kiradien
Copy link
Collaborator

Cleanup output html data, removing unnecessary elements and frivolous metadata. Chapters are visibly the same, but content length reduced by around 50% on average.

Swapped single quote to double quote

Optimize QidianParser.js for smaller files.

Cleanup output html data, removing unnecessary elements and frivolous metadata. Chapters are visibly the same, but content length reduced by around 50% on average.
@Kiradien
Copy link
Collaborator Author

Body character count for several chapters are listed below. This change affects paragraphs across the board in Webnovel, and lowers output size of longer epubs substantially (Several megabytes in some cases.)
33274 -> 19721
82165 -> 35371
75519 -> 34155
83330 -> 34726
91365 -> 40227
55760 -> 26684
94871 -> 40475
41285 -> 19790
43715 -> 20415
41140 -> 20367
39915 -> 19864
34774 -> 17611
33995 -> 17554
44398 -> 20737
41015 -> 20242
40249 -> 20198
31043 -> 16407
40152 -> 19740
38989 -> 19299
39205 -> 19154
34102 -> 17661
41013 -> 19879
38733 -> 18682
55321 -> 24440
83876 -> 35272
58361 -> 24953
43695 -> 20756

@dteviot dteviot merged commit 02e9050 into dteviot:ExperimentalTabMode Jun 30, 2024
1 check passed
@dteviot
Copy link
Owner

dteviot commented Jun 30, 2024

@Kiradien

Thank you again

@Kiradien Kiradien deleted the patch-3 branch July 7, 2024 10:55
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.

2 participants