[elephant-devel] Optimization

Elliott Slaughter elliottslaughter at gmail.com
Mon Dec 22 18:19:52 UTC 2008


This is using the BDB backend.

On Mon, Dec 22, 2008 at 6:13 AM, Ian Eslick <eslick at media.mit.edu> wrote:

> Which backend are you using?
>
> Sent from my iPhone
>
> On Dec 22, 2008, at 12:35 AM, "Elliott Slaughter" <
> elliottslaughter at gmail.com
>  > wrote:
>
> > Hi,
> >
> > I am exploring Elephant/BDB as a backend for a video game I am
> > writing. I have ignored performance considerations so far, but on
> > some larger maps (around 100 objects), performance is abominably
> > slow (around 5 fps). The same maps run about 10 times faster (about
> > 50 fps) when using completely in-memory hash-tables.
> >
> > Based on profiling, it appears that the main bottleneck is
> > persistent slot lookup. I remember reading that Elephant reads from
> > file on every slot read, which could explain this result.
> >
> > Are cached slots usable yet (at least in a single-threaded
> > situation)? When I use ":cached t" in my slot definitions, I get
> > errors.
> >
> > Any other advice about optimization would be appreciated.
> >
> > Thanks.
> >
> > --
> > Elliott Slaughter
> >
> > "Any road followed precisely to its end leads precisely nowhere." -
> > Frank Herbert
> > _______________________________________________
> > elephant-devel site list
> > elephant-devel at common-lisp.net
> > http://common-lisp.net/mailman/listinfo/elephant-devel
>
> _______________________________________________
> elephant-devel site list
> elephant-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/elephant-devel
>



-- 
Elliott Slaughter

"Any road followed precisely to its end leads precisely nowhere." - Frank
Herbert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/elephant-devel/attachments/20081222/5b8be794/attachment.html>


More information about the elephant-devel mailing list