savi-lang / savi

A fast language for programmers who are passionate about their craft.
BSD 3-Clause "New" or "Revised" License
157 stars 12 forks source link

Optimize vtables: skip functions with only concrete call sites. #320

Closed jemc closed 2 years ago

jemc commented 2 years ago

Prior to this change we have been including all reachable functions in the virtual tables for virtual method dispatch, regardless of whether the reached call sites were concrete or abstract.

Now we will only put an entry in the virtual table if there is at least one abstract call site (including actor behavior messages).