Nothing Special   »   [go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Use BufReader and BufWriter more 🤦 #185

Merged
merged 1 commit into from
Feb 12, 2023
Merged

Use BufReader and BufWriter more 🤦 #185

merged 1 commit into from
Feb 12, 2023

Conversation

jmackie
Copy link
Member
@jmackie jmackie commented Feb 8, 2023

The flamegraphs from #183 showed that ditto make was spending a significant amount of time serializing and deserializing.

Making this change gives a big speedup, so I'm pretty sure that was the problem. Although switching to something like bincode could also be worthwhile? #184

Typechecking modules is now the bottleneck, which is what I'd expect.

@jmackie
Copy link
Member Author
jmackie commented Feb 11, 2023

For example, compiling just the entrypoint of https://github.com/ditto-lang/todomvc/tree/9e72ba23fc0a8ecfb584ce6bc05afd3c6630210a

Before:
flamechart before

After:
flamechart after

@jmackie jmackie marked this pull request as ready for review February 11, 2023 18:01
@jmackie jmackie merged commit ac82b54 into main Feb 12, 2023
@jmackie jmackie deleted the bufftings branch February 12, 2023 08:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant