further improvements of performance regarding node-size calculation