Hacker News new | ask | show | jobs
by au-arms 1629 days ago
More expensive with or without the spacer components?
2 comments

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.