jazz icon indicating copy to clipboard operation
jazz copied to clipboard

Performance: loading coValue data on React Native is slow

Open gdorsi opened this issue 7 months ago • 0 comments

Testing on the chat app with ~150msg the load is around 4s (in dev mode, iOS simulator)

Done some experiments and:

  • switching to the new subscription branch reduces the load time to 3s
  • additionally, disabling the signature verify brings down the load time to 500ms

All these measurements are done in React dev mode and without any virtualization/pagination so we can assume that of these 500ms most of them are just from rendering.

This means that most of the overhead was due both the subscription code being slow and mostly from the sgnature verify.

Tried to enable RNQuickCrypto and unable to load the chat due to InvalidSignature errors. (probably due some changes done to CryptoProvider not ported to RNQuickCrypto)

After shipping the new subscriptions code we should focus on improving RNQuickCrypto and evaluate making it the default.

gdorsi avatar May 05 '25 09:05 gdorsi