You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My hypothesis was that something in ctx.do was slowing it down, so I made a test in api.cf:
router.all('*', async (req, env) => {
const { searchParams } = new URL(req.url)
if (!searchParams.has('test')) {
const { user } = await env.CTX.fetch(req).then(res => res.json())
req.user = user
}
})
and that increased performance by 2000% ... so we need to isolate and resolve whatever is introducing slowness. We should make sure we aren't doing anything async/await to block the thread ... ctx.do should be instant ... my initial suspicion is that this is related to the Analytics Engine stuff we added on Friday.