|
|
|
|
|
by swift
3469 days ago
|
|
Instantiating the templates at link time would probably make more sense. With LTO we're already deferring a significant portion of the compilation process to link time so this is an obvious extension. This issue was also on the mind of the C++ standards committee when they began work on the new module system. I'm not sure how the current spec behaves with respect to template instantiation, though. |
|
Problem with template instantiation is that the mechanism is too general to be amendable to some kind of meaningful precomputation.