Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tmccrary55
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
151.
▲
by
tmccrary55
6y ago
As others have mentioned in the thread, the issue is that virtual calls are more expensive because you have to resolve the correct function in the related vtable. So instead of just setting up and executing the call, you have to traipse thr
152.
▲
by
tmccrary55
6y ago
My understanding is that default virtual is preferred because the JIT compiler is capable of inlining or devirtualizing most of the calls. It would be a huge mistake in a statically compiled language because the static compiler doesn't
153.
▲
by
tmccrary55
7y ago
Free but monetized.