Re: [GD-General] Compile times
Brought to you by:
vexxed72
From: Thatcher U. <tu...@tu...> - 2002-12-10 05:53:38
|
On Dec 09, 2002 at 02:38 -0800, Brian Hook wrote: > > What are the alternatives other than rolling your own? > > Rolling your own? =) > > For C++, unless you want a base root Object class, there's no > alternative, since STL is templatized and gives you the static type > checking that many feel is so vitally important. Actually I think there's a really good alternative, if your primary beef with STL is compile times: minimal vector<> and map<> workalikes. Basic vector<> comprises about 95% of my usage of STL, and map<> is an additional 4.9%. One thing I learned from scripting languages is that array and hash are the only two basic data structures that really matter. The simple STL-alike array<> and hash<> templates that I use for my personal stuff take about 350 lines, and I consider them very worthwhile. (They're mediocre, but public domain, if anyone wants the link.) -- Thatcher Ulrich http://tulrich.com |