DEV Community

Discussion on: Flutter Performance Tips (#1): const constructors

Collapse
 
ejthayer profile image
ejthayer • Edited

I'm sorry but this is just wrong. I'm a bit of a speed nut, as soon as Flutter came out I started testing its speed. I wanted to know if it was game capable, and it is. I have also done tests with 2 flutter pages. Both with tons of widgets, one page no const, the other page mostly const, refreshing the page 10000 times and timing to the nearest millisecond and there was no significant difference at all. If it was a valid way to increase speed I would love it, but it is just not. If people want to gain speed you should focus on not having redundant embedded widgets or improperly using state management. In fact most developers improperly use state management, start there.