I have 30,000 rect to draw, and the page is too slow. can anyone help me?
See original GitHub issuelandData.length = 30000
<Group>
{landData.length > 0 ? (
landData.map((rectInfo: RectInfo) => {
return <ColorRect key={`${rectInfo.key}`} rectInfo={rectInfo} onItemClick={onLandClick} />
})
) : (
<></>
)}
{mark}
</Group>
and about {mark}
, first click i add Rect to mark, if i click it again, i have to remove it from group, can i implement it?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Slow drawing in SOLIDWORKS? Here are 12 possible reasons
PC power settings, drivers, imported features and corrupt templates make a drawing slow. We share how to measure and improve performance.
Read more >I process things very slowly. I am a slow reader. I have ... - Quora
Slowness is a result, not the problem. Problem possibly is imbalance of a kind. Slowness is like knife dullness. When knife is dull,...
Read more >STAAR Grade 3 Reading - Texas Education Agency
A porcupine has. 30,000 or more of them! 2 You might have seen cartoons showing porcupines that could “shoot” their quills. Real porcupines...
Read more >Any way to speed up Python and Pygame? - Stack Overflow
So pre-drawing fixed images onto surfaces (outside the main game loop), then blitting the surface to the main screen will be more efficient....
Read more >Problem Solving and Estimating - OpenTextBookStore
In real life, problem solving requires identifying an appropriate formula or procedure, and determining what information you will need (and won't need) to ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am not certain if it will be simply possible to handle that much. Probably you should try direct 2d canvas API and just draw with it, without react and Konva abstractions.
yes. you can try it. https://github.com/bvaughn/react-virtualized or https://github.com/bvaughn/react-window