Reshuffling the Evennia package into the new template paradigm.
This commit is contained in:
parent
2846e64833
commit
2b3a32e447
371 changed files with 17250 additions and 304 deletions
|
|
@ -1,24 +0,0 @@
|
|||
|
||||
IDMAPPER
|
||||
--------
|
||||
|
||||
https://github.com/dcramer/django-idmapper
|
||||
|
||||
IDmapper (actually Django-idmapper) implements a custom Django model
|
||||
that is cached between database writes/read (SharedMemoryModel). It
|
||||
not only lowers memory consumption but most importantly allows for
|
||||
semi-persistance of properties on database model instances (something
|
||||
not guaranteed for normal Django models).
|
||||
|
||||
Evennia makes a few modifications to the original IDmapper routines
|
||||
(we try to limit our modifications in order to make it easy to update
|
||||
it from upstream down the line).
|
||||
|
||||
- We change the caching from a WeakValueDictionary to a normal
|
||||
dictionary. This is done because we use the models as semi-
|
||||
persistent storage while the server was running. In some situations
|
||||
the models would run out of scope and the WeakValueDictionary
|
||||
then allowed them to be garbage collected. With this change they
|
||||
are guaranteed to remain (which is good for persistence but
|
||||
potentially bad for memory consumption).
|
||||
- We add some caching/reset hooks called from the server side.
|
||||
Loading…
Add table
Add a link
Reference in a new issue