Splitting stdio, etc.

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 12 07:40:48 PST 2014


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


More information about the Digitalmars-d mailing list