-
Notifications
You must be signed in to change notification settings - Fork 5
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
PDF size increased between v0.6 and v0.8 #32
Comments
Update: Looks like the font difference is a consequence of |
Can you please share your presentation (at least privately)? I will investigate what have changed in font rendering wrt. font weight |
Hello. After a long time, I have an update for you.
All documents were generated from identical Python input. The only variable was the venv with different versions of nelsie installed. |
Thank you for your update. Can you please share the source code with me? I would like to profile it, increase to 26s is really unexpected. |
I have emailed you the source for my presentation. Please let me know if you got it. |
I have not received your email. |
How can I privately share the source code for my presentation with you? |
I have found your email, I am sorry. I can confirm the performance regression (in my case v0.11 is 2x slower then v0.7). I will try to investigate the problem. Thank you for your slides! |
I did some profiling and measurements and it seems that there are some regressions in text rendering and text size computing. Your slides are also quite heavily using text_anchors that needs some extra text computing so it amplifies the effect. I am going to implement some optimizations around text rendering so I hope it helps. I cannot revert to the previous text processing as API of upstream crates were changed. The increased size of slides is still quite mystery for me, and I still do not have final conclusion. |
FYI: I have integrate new upstream crates that fixes a problem with subsetting. In "main" branch (unrelased yet), it decrease the size of PDF to 6.8MB and it is about 15% faster. I will make new release in few days. Btw: So far, I did not find a definite way to solve rendering speed with the current renderer but I am experimenting with Parley and it seems as a way. |
The size of the generated PDF for the same input increased between version 0.6 and 0.8. With 0.6, the pdf size was 12MB. With 0.8, it is 19MB.
I also noticed that some fonts look different now.
v0.6:
v0.8:
The text was updated successfully, but these errors were encountered: