On Wednesday, 12 November 2014 at 15:34:37 UTC, H. S. Teoh via Digitalmars-d wrote:
Ilya has been working on localizing imports, which will help in
splitting up these modules.

I think if the imports can be localized, there's no need to split the module, especially if it is template heavy like std.algorithm, which is de-facto lazy and minimal anyway - they are always imported, but the real work is only done upon being used.

I *might* be wrong about the cost of parsing templates vs instantiating, I've used several thousand line programs of plain code but not that much template without pulling in all of Phobos, which makes the speed hard to isolate.

But regardless, I still think we should do one thing at a time. If the cleaned up import solves the speed+size problem, no need to spend the time trying to split the module.


"A one-question geek test. If you get the joke, you're a geek: Seen on a California license plate on a VW Beetle: 'FEATURE'..." -

LOL

Reply via email to