-
Notifications
You must be signed in to change notification settings - Fork 10
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
return null; | ||
} | ||
|
||
const plcDoc = await getDidDoc(did); |
There was a problem hiding this comment.
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.
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.