This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: lazy facet instantiation
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Howard Hinnant <hhinnant at apple dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Tue, 15 Nov 2005 20:45:44 +0100
- Subject: Re: lazy facet instantiation
- References: <C2F06E93-C9E2-4FF5-A8FC-69D26DDE2B86@apple.com>
Howard Hinnant wrote:
> Has the locale implementation technique of "lazy facet instantiation"
> been kicked around? I searched the archive but came up empty. Imho
> this is a critical technique for reducing the code size triggered by
> casual use of C++ I/O.
[snip]
The idea sounds very cool, of course. However, at the moment I don't
fully understand where the *code size* (vs, application memory
footprint) reduction comes from, at least not from a quick glance to our
locale from that point of view... Are you willing to explain in little
more detail?
> My apologies in advance if I've simply misunderstood the current
> implementation.
Likewise ;)
Paolo.
P.S. Why in computer science "lazyness" is always a virtue and is never
in real life? ;)