DWScript JS Smart-linker (revised)

Not long ago, I wrote the DWScript JavaScript Smart-Linker did not eliminate unused virtual methods, well that limitation is now gone.

A virtual method that is never called, in its base class nor any of its subclasses, will now be eliminated.

In the small game Nickel Iron which was used as illustration, that further reduces the generated output by almost 10% to just 92 kB “raw”, or 23 kB compressed. The gains come from not just the unused implementations being removed, but also a reduction in the size of the various VMTs.

4 thoughts on “DWScript JS Smart-linker (revised)

  1. Sorry to put this comment on the wrong blog entry, but Sampling Profiler entries have closed comments and I don’t have your contact information.

    Just a suggestion to the SamplingProfiler if you are going to do some more work on it some time:

    Your samples should also collect callstack at every sample point, traverse it and push sample count to all underlying element positions.

Comments are closed.