pagarevijayy / ezcreatives-app

ezCreatives - content automation tool (Main App)
https://app-ezcreatives.vercel.app/
2 stars 0 forks source link

Performance issue (during download) #13

Open pagarevijayy opened 3 years ago

pagarevijayy commented 3 years ago

Root Cause: HTML to Image conversion takes time (which increases during subsequent downloads - refer google sheets - maybe because previous data ain't cleared after the use)

Consequence - browser hangs and the app crashes (load on memory? js execution?)

Action Item - Optimize garbage collection.

pagarevijayy commented 3 years ago

Performance benchmarking - google sheet

Conclusion:

  1. Best case - refresh after every download
  2. Single image avg case - 1.5 secs
  3. Multi-image avg case: 4 images (11 secs), 6 images (18 secs)
  4. For multi-images go with avg 4 or 6 images only
  5. If these limits are exceeded the app will hang and crash
  6. Proposed optimization: Some garbage collection mechanisms after data-url is produced from the element
  7. Keep looking for a permanent solution (maybe ideally using canvas?), this can be delayed until the product-market fit

Action Item: Handle using ui-ux hacks for MVP

pagarevijayy commented 3 years ago

@todo: look for some optimization technique like garbage collection.

pagarevijayy commented 3 years ago

Action Item: Delaying it until 10 paying customers and is really hurting, for now, the workaround is to auto-refresh after image download, and ask customers to follow benchmarking standards in order to use the app!

pagarevijayy commented 3 years ago

For single-mode