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

Added ghost attr to elem macro #2718

Merged
merged 2 commits into from
Nov 19, 2023
Merged

Added ghost attr to elem macro #2718

merged 2 commits into from
Nov 19, 2023

Conversation

Dherse
Copy link
Sponsor Collaborator

@Dherse Dherse commented Nov 19, 2023

This changes ParElem and TextElem to make them significantly smaller which seems to have given a huge performance boost (on my thesis) of about 25%. I'll update this PR quickly once I have the results for @Enter-tainer's document.

Closes #2717

@Dherse
Copy link
Sponsor Collaborator Author

Dherse commented Nov 19, 2023

Unfortunately and somewhat surprisingly, it didn't seem to give any gains on @Enter-tainer's document :(

@laurmaedje laurmaedje merged commit 9b5b3b2 into typst:main Nov 19, 2023
3 checks passed
@laurmaedje
Copy link
Member

Thanks!

laurmaedje pushed a commit that referenced this pull request Nov 20, 2023
@Dherse Dherse deleted the textelem-smol branch November 27, 2023 11:20
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.

TextElem is unnecessarily heavy
2 participants