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

Fix bug where glyphs were saved twice #160

Merged
merged 1 commit into from
Aug 13, 2021
Merged

Conversation

cmyr
Copy link
Member

@cmyr cmyr commented Aug 12, 2021

As pointed out in #157.

@github-actions
Copy link

🗜 Bloat check ⚖️

Comparing 042ad28 against fce1673

target old size new size difference
target/release/examples/load_save 1.75 MB 1.75 MB -544 Bytes (-0.03%)
target/debug/examples/load_save 8.17 MB 8.17 MB -216 Bytes (-0.00%)

@chrissimpkins
Copy link
Collaborator

chrissimpkins commented Aug 12, 2021

ping @madig in case you were profiling I/O with the latest main branch

@madig
Copy link
Collaborator

madig commented Aug 12, 2021

Thanks, but I haven't gotten around to profiling at all :(

@madig
Copy link
Collaborator

madig commented Aug 12, 2021

So, I did a very quick replacement in my test program of norad = { git = "https://github.com/linebender/norad.git", rev = "bcb1ddf425aa8e6d9da3a945ac2e7e10e6717e47", features = ["rayon"] } and the run time is unchanged. I don't know if I'm overlooking something.

Edit: wait, I do something stupid in the program, retesting tomorrow.

Edit2: Retesting, I see very little difference. Maybe because Rust spends most of its time twiddling its thumbs anyway?

@cmyr
Copy link
Member Author

cmyr commented Aug 13, 2021

yea, I profiled this and it looks like rayon is a small win, which I interpret as meaning that the bottleneck is actually writing to disk, which makes sense.

@cmyr cmyr merged commit 7fa20bc into master Aug 13, 2021
@cmyr cmyr deleted the fix-double-glyph-saving branch August 13, 2021 14:51
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.

3 participants