question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

šŸŒ Performance troubleshooting

See original GitHub issue

Question

Hi! Iā€™m currently using a library called react-native-bigheads that uses react-native-svg for rendering. The library renders some complex vectors, but it shouldnā€™t be too much to handle.

My problem is, that the library renders really slow. Iā€™m talking about noticeable delay in initial rendering (mounting) (see this demo), and generally really slow renders on re-rendering when a prop changes (see this demo).

I am trying to debug why this renders so slow, as normally vector rendering should be really fast. Now to my actual question(s):

  1. What could possibly be the cause of those incredibly slow renders?
  2. How can I debug/perf-measure this?
  3. What do I generally have to look out for when using vectors? Stuff like ā€œdonā€™t use a lot of clipping, thatā€™s really slowā€

More info

  • The main component that renders all other child SVG components is Base.tsx
  • All other components are in this folder
  • Component renderers are stored as variables in maps (like a table lookup)

All kinds of help appreciated šŸ‘

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:10
  • Comments:6

github_iconTop GitHub Comments

6reactions
mrousavycommented, Jun 8, 2021

@angadp Iā€™m not having re-render issues. React.memo only prevents unnecessary re-renders, but in my case the actual render times are slow.

2reactions
mrousavycommented, Jun 14, 2022

I just did most of it natively.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Fix Performance Issues In Windows 11 [Tutorial]
How To Fix Performance Issues In Windows 11 [Tutorial]If you are facing performance -related issues like Non-responding programs, freezing,Ā ...
Read more >
My Computer is Running Slow, What Steps Can I Do to Fix It?
Today, spyware and other malware is a big cause of many computer problems, including slower performance. Even if an antivirus scanner isĀ ...
Read more >
How to Fix a Slow Windows PC - Support.com TechSolutions
1. Microsoft frequently releases updates to fix bugs, patch security issues, and add new services to the Windows Operating System. In Windows 10,...
Read more >
10 things to look for when troubleshooting slow network ...
Outages often impede network performance. These outages could be for a variety of reasons including: router or switch failures; planned or unplanned softwareĀ ......
Read more >
Troubleshoot Network Performance Issues
Network performance issues can take hours to fixā€”unless you have Auvik. ... network performance issues slow snails auvik use caseĀ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found