c++ - does .so size affect virtual function performance -


recently, met performance problem. in vtune result, virtual function cost no.1 cost, when reduce size 48m 37m, performance seems better, raise 3.9%.

i wanna know, .so size realy affect virtual function performance, if so, why? thanks!

it not purely size (though of course affects paging after program loaded), number of adjustments loader must make when loading program. can see measured setting environment variable

ld_debug=statistics 

virtual functions in particular require lot of adjustments during loading. discussion on this,


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -