Tony D’Addeo pfp
Tony D’Addeo
@deodad
every Ethereum RPC provider seems to support batching but advise against using it can anyone add more color here or give a use case where you think it's useful?
2 replies
0 recast
5 reactions

greg pfp
greg
@gregfromstl
We don’t advise against, we actually do it by default if you use the sdk
2 replies
0 recast
6 reactions

Tony D’Addeo pfp
Tony D’Addeo
@deodad
this is from clients? what are the advantages? what's the pseudo logic for how you batch?
1 reply
0 recast
0 reaction

greg pfp
greg
@gregfromstl
Advantage is just performance afaik, full code is here: https://github.com/thirdweb-dev/js/blob/main/packages/thirdweb/src/rpc/rpc.ts (I'd be surprised if viem didn't do this too)
1 reply
0 recast
3 reactions

jxom  pfp
jxom
@jxom
Is there really a performance benefit as everyone is on HTTP/2 now?
2 replies
0 recast
1 reaction

jxom  pfp
jxom
@jxom
Viem doesn’t default to it right now though. Maybe we should if there are obvious benefits.
0 reply
0 recast
1 reaction