- May 02, 2015
-
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
This temporarily increases the node size to 16 bytes - we'll bring it back. It allows us to remove the horrible node_pi hack and to reduce the amount of changes against master. This comes at the price of not decreasing basline xml_node_struct size. The compact xml_node_struct is also increased by this change but a followup change will reduce *both* xml_attribute_struct and xml_node_struct (to 8/12 bytes).
-
- Apr 29, 2015
-
-
Arseny Kapoulkine authored
The memory_large_allocations test sometimes classified hash allocations as page allocations since hash table could reach 512 entries.
-
Arseny Kapoulkine authored
Split a long line into multiple statements.
-
- Apr 22, 2015
-
-
Arseny Kapoulkine authored
Also remove useless comments.
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
We used this in two cases - to get the page pointer and to test flags. We now use PUGI__GETPAGE for getting the page pointer and operator& to test flags - this makes getting node type significantly faster since it does not require page pointer reconstruction.
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
Clarify the offset applied when encoding the pointer difference. Make decoding diff slightly more clear - no effect on performance. Adjust branch weighting in compact_string encoding - 0.5% faster. Use uint16_t in compact_pointer_parent - 2% faster.
-
Arseny Kapoulkine authored
Make sure compact_hash_table::rehash() is not inlined - that way reserve() is inlined so the fast path has no extra function calls. Also use subtraction instead of multiplication when checking capacity.
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
Also test ranged for and copying big xpath_variable_set objects (to make sure we actually handle hash collisions properly)
-
Arseny Kapoulkine authored
xpath_query, xpath_node_set and xpath_variable_set are now moveable. This is a nice performance optimization for variable/node sets, and enables storing xpath_query in containers without using pointers (it's only possible now since the query is not copyable).
-
- Apr 21, 2015
-
-
Arseny Kapoulkine authored
-
- Apr 16, 2015
-
-
Arseny Kapoulkine authored
xpath_variable_set is essentially an associative container; it's about time it became copyable. Implementation is slightly tricky due to out of memory handling. Both copy ctor and assignment operator have strong exception guarantee (even if exceptions are disabled! which translates to "roll back on allocation errors").
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
Switch to malloc and manually aligning the pointer to the page boundary. mmap is much slower than malloc; this change makes tests ~4x faster.
-
- Apr 15, 2015
-
-
Arseny Kapoulkine authored
The type of the variable is now initialized correctly in the ctor, so that there is no interim invalid state.
-
Arseny Kapoulkine authored
Since the type of the set was updated before assignment, assigning in out-of-memory condition could change the type to not match the content.
-
Arseny Kapoulkine authored
If xml_writer::write throws an exception while being called from flush(), the exception is thrown from destructor. Clang in C++11 mode calls std::terminate in this case.
-
- Apr 14, 2015
-
-
Arseny Kapoulkine authored
Slightly reword format_indent description.
-
Arseny Kapoulkine authored
Fix code style and revert redundant parameters/whitespace changes. Also remove format_each_attribute_on_new_line - we're only introducing one extra formatting flag. The flag implies format_indent but does not include its bitmask. Also add a few more tests. Fixes #14.
-
Arseny Kapoulkine authored
Merge branch 'AlignAttributesEachOnSeparateLine' of git://github.com/halex2005/pugixml into indent_attributes
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
End of an era. Make can be used for regular development (Linux/OSX), documentation building and release packaging. CMake can be used for regular development (Windows); it's also used by some Linux distributions. Continuous integration is now performed by Travis CI and AppVeyor.
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
- Apr 13, 2015
-
-
halex2005 authored
-
halex2005 authored
-
Arseny Kapoulkine authored
-