Content pfp
Content
@
0 reply
18 recasts
21 reactions

Stephan pfp
Stephan
@stephancill
update: everything should be way faster now! https://frameswap.stephancill.co.za/frames/8453/0x4ed4e862860bed51a9570b96d89af5e1b0efefed
1 reply
0 recast
13 reactions

Barbs pfp
Barbs
@bbq
Nice work on the speed improvements, the UX is much better now. What did you speed things up so much? The 5s timeout can be a pain when working with contract txs
1 reply
0 recast
0 reaction

Stephan pfp
Stephan
@stephancill
I refactored the function that fetches the quote and writes it to the kv store into an api endpoint which I am now deploying to a single regular server instance instead of serverless to avoid cold starts and take advantage of in-memory caching
1 reply
0 recast
0 reaction

Barbs pfp
Barbs
@bbq
appreciate the explanation, ty - it’s not much but all I have 🙏 163 $DEGEN
1 reply
0 recast
0 reaction

Stephan pfp
Stephan
@stephancill
In general if you’re struggling with 5 second timeouts I would recommend having a page that starts the expensive operation asynchronously and stores the result in a kv store and then check for the result in the next frame https://github.com/stephancill/frameswap/blob/master/app/frames/buy/route.tsx#L126-L139
0 reply
0 recast
1 reaction