We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Replace libxml2 with tinyxml2
Replace libxml2 with tinyxml2
Refactor #1703 [Closed]
Status: | Closed | |
---|---|---|
Start date: | 2013-02-06 | |
Priority: | Normal | |
Due date: | ||
Assignee: | - | |
% Done: | 100% |
|
Category: | all | |
Target version: | cocos2d-2.1rc0-x-2.1.2 |
http://github.com/leethomason/tinyxml2/issues/52
The major benefit I really see would be smaller memory allocations.
tinyxml2 homepage does have this comparison between tinyxml and tinyxml2.
Advantages of TinyXML-2
The focus of all future dev.
Many fewer memory allocation (1/10th to 1/100th), uses less memory (about 40% of TinyXML-1), and faster (~5x on read).
No STL requirement.
More modern C++, including a proper namespace.
Proper and useful handling of whitespace