- 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
-
Arseny Kapoulkine authored
Also fix test in wchar_t mode.
-
Arseny Kapoulkine authored
Ensure that all the necessary cleanup is performed in case the allocation fails with an exception - files are closed, buffers are reclaimed, etc. Any test that triggers a simulated out-of-memory condition is ran once again with a throwing allocation function. Unobserved std::bad_alloc count as test failures and require CHECK_ALLOC_FAIL macro. Fixes #17.
-
Arseny Kapoulkine authored
Also add tests that verify save_file for absence of FILE leaks.
-