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

Improve post list perf #136

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

tom-sherman
Copy link
Contributor

@tom-sherman tom-sherman commented Oct 6, 2024

The goal here is mainly to reduce cache reads. All of the reads that I'm reducing should be happening in parallel pretty much (either via .map() or suspense or both. But looks like Vercel data cache gets pretty slow with many parallel reads.

Copy link

vercel bot commented Oct 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
frontpage ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 7, 2024 4:34pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
atproto-browser ⬜️ Ignored (Inspect) Visit Preview Oct 7, 2024 4:34pm
unravel ⬜️ Ignored (Inspect) Visit Preview Oct 7, 2024 4:34pm

Copy link

linear bot commented Oct 6, 2024

return null;
}

const plcDoc = await getDidDoc(did);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are still a bunch of extra cache reads coming from calling getDidDoc inside getVerifiedHandle...

I think the best thing to do would be to move to a resolveIdentity function like we do in atproto-browser - a function that accepts a handle or a DID and returns the did along with the did doc.

@tom-sherman tom-sherman marked this pull request as draft October 6, 2024 22:58
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.

1 participant