@wim_v12e @csepp @cancel The biggest one that helps JITers is small function sizes, which are heavily reused.
Then again, polymorphism is especially tricky for JS to optimize away. Not that that stops JS engines from trying!
@wim_v12e @csepp @cancel The biggest one that helps JITers is small function sizes, which are heavily reused.
Then again, polymorphism is especially tricky for JS to optimize away. Not that that stops JS engines from trying!
@cancel @wim_v12e @csepp I do think the video addressed function-size as something that doesn't necessarily yield more optimal code in C++, but ultimately I agree.
I think OO got over-hyped leading to some bad software-engineering decisions which we're still living with.
P.S. @cancel I would appreciate your source to adjust my understanding. Unfortunately I've lot track of mine.
what you're describing with function size for JIT 1) isn't true 2) isn't relevant for the video, anyway, because the function calls aren't repeated in multiple sites.
("clean code" people will often tell you to break up stuff into the smallest functions possible. the video covers this)
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.