Hacker News new | ask | show | jobs
by bryanrasmussen 1629 days ago
I also think repaints are probably more expensive given this solution.
1 comments

More expensive with or without the spacer components?
I would think more expensive with spacers, you have more nodes to repaint, furthermore if you have an event that changes a particular spacer size - for example if you have contentnode spacernode contentnode and then change width of spacernode you will be repainting three nodes. Window resizing becomes more expensive seems to me.
Probably more expensive with spacers? I'd like to see some benchmarks though, I'm doing little more than guessing.