Improved performance
This commit is contained in:
parent
4f70be4d63
commit
0c34043dfe
|
@ -86,6 +86,13 @@ void diva_os_free (unsigned long flags, void* ptr);
|
||||||
#include "debuglib.h"
|
#include "debuglib.h"
|
||||||
|
|
||||||
#define DIVA_SHARED_SEGMENT_ALLOC 1
|
#define DIVA_SHARED_SEGMENT_ALLOC 1
|
||||||
|
/*
|
||||||
|
DIVA_SHARED_SEGMENT_LOCK used to lock shared segment alloc instance. Locked instance is newer freed
|
||||||
|
due to reference counter newer receives zero. This allows to maintain permenently mapped pool of pages
|
||||||
|
and to reduce overall system load.
|
||||||
|
Causes memory load if application is stopped, but memory and mapped resources are freed by OS.
|
||||||
|
*/
|
||||||
|
#define DIVA_SHARED_SEGMENT_LOCK 1
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue