DOM memory system: Difference between revisions
Jump to navigation
Jump to search
m fmt |
a little formatting to make it easier to grok |
||
Line 1: | Line 1: | ||
Internal notes on the '''[[COLLADA DOM]] memory system''' | '''Summary:''' Internal notes on the '''[[COLLADA DOM]] memory system'''. | ||
<code>daeMemory</code> system is supposed to be a class that manages the [[COLLADA DOM]]'s memory from different heap pools | '''Purpose:''' The <code>daeMemory</code> system is supposed to be a class that manages the [[COLLADA DOM]]'s memory from different heap pools: | ||
It overwrites <code>malloc</code> and <code>free</code>. | * It overwrites <code>malloc</code> and <code>free</code>. | ||
All dae classes overwrite <code>new</code> and <code>delete</code> to use the <code>daeMemorySystem</code>'s <code>malloc</code> and <code>free</code>. | * All dae classes overwrite <code>new</code> and <code>delete</code> to use the <code>daeMemorySystem</code>'s <code>malloc</code> and <code>free</code>. | ||
This has never been fully implemented. It actually makes it harder to profile the DOM because many memory profilers replace <code>new/delete</code> and <code>malloc/free</code> with their own functions but since the DOM does that they don’t work. | This has never been fully implemented. It actually makes it harder to profile the DOM because many memory profilers replace <code>new/delete</code> and <code>malloc/free</code> with their own functions but, since the DOM does that also, they don’t work. | ||
{{DOM navigation}} | {{DOM navigation}} | ||
[[Category:DOM subsystems|Memory system]] | [[Category:DOM subsystems|Memory system]] |
Revision as of 23:14, 23 May 2007
Summary: Internal notes on the COLLADA DOM memory system.
Purpose: The daeMemory
system is supposed to be a class that manages the COLLADA DOM's memory from different heap pools:
- It overwrites
malloc
andfree
.
- All dae classes overwrite
new
anddelete
to use thedaeMemorySystem
'smalloc
andfree
.
This has never been fully implemented. It actually makes it harder to profile the DOM because many memory profilers replace new/delete
and malloc/free
with their own functions but, since the DOM does that also, they don’t work.
COLLADA DOM - Version 2.4 Historical Reference |
---|
List of main articles under the DOM portal. |
User Guide chapters: • Intro • Architecture • Setting up • Working with documents • Creating docs • Importing docs • Representing elements • Working with elements • Resolving URIs • Resolving SIDs • Using custom COLLADA data • Integration templates • Error handling Systems: • URI resolver • Meta • Load/save flow • Runtime database • Memory • StringRef • Code generator |