Only form import stubs for referenced imports.
e16e688
Opened by Graydon Hoare at
Currently we emit an import stub for every item in an imported module tree. This is wasteful. Most imported items are never going to be referenced by most compilation units that reference them; there's no need to form import stubs for the unreferenced ones.
Fixing this is a matter of a small table in semant full of 'node->referenced' flags noted while resolving.
A small matter of 269 lines of support code, sure. So much for 'easy'. Ah well. Closed.
Graydon Hoare at 2010-06-28 03:49:33
Once more with feeling. Closed by e1f6749f9a7ca09ba9bb49d6bf5aad71c81d5925.
Graydon Hoare at 2010-06-28 03:54:29