[Home] [Groups] - Message: [Prev in Group] [Next in Group]
25851: Re: [MUD-Dev] Is database access a bottleneck?
[Full Header] [Plain Text]
From: Sean Kelly <sean@ffwd.cx>
Newsgroups: nu.kanga.list.mud-dev
Date: Sat, 14 Dec 2002 10:28:25 -0800
References: [1]
Organization: Kanga.Nu
bradley newton haug wrote:
> I agree, my little rant about DB/flat files was just because of
> the whole 'flatfile speed myth', I don't use db's to maintain
> state, just fire it up, save it and do sanity checks. I recommend
> trading memory for speed every chance you get, which is the
> opposite of some old school algorithms. I even have hashtables
> with calculation/result lookups that I load at startup, to save a
> few cycles in exchange for memory/slower startup.
One of the neat features of C++ is that you can potentially stick a
ton of numerical computation in template language and have it done
at compile-time. Numerical APIs like Blitz++ do this whenever
possible. One fun project I was working on for a while was a maze
generator done in template code that randomly generated a 20x20 maze
during compilation. Code generation can get pretty tricky, but it
can also be quite powerful.
Sean
_______________________________________________
MUD-Dev mailing list
MUD-Dev@kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev