php-src/ext/xmlwriter/tests
Niels Dossche f5e81fe182
Optimize in-memory XMLWriter
We're currently using a libxml buffer, which requires copying the buffer
to zend_strings every time we want to output the string. Furthermore,
its use of the system allocator instead of ZendMM makes it not count
towards the memory_limit and hinders performance.

This patch adds a custom writer such that the strings are written to a
smart_str instance, using ZendMM for improved performance, and giving
the ability to not copy the string in the common case where flush has
empty set to true.

Closes GH-16120.
2024-09-30 20:30:03 +02:00
..
001.phpt
002.phpt
003.phpt
004.phpt
005-mb.phpt
005.phpt
006.phpt
007.phpt
008.phpt
009.phpt
010.phpt
011.phpt
012.phpt
bug39504.phpt
bug41287.phpt
bug41326.phpt
bug48204.phpt
bug71536.phpt
bug79029.phpt
bug79344.phpt
OO_001.phpt
OO_002.phpt
OO_003.phpt
OO_004.phpt
OO_005.phpt
OO_006.phpt
OO_007.phpt
OO_008.phpt
OO_009.phpt
OO_010.phpt
OO_011.phpt
OO_012.phpt
OO_013.phpt
xmlwriter_open_uri_error_001.phpt Use "must not" instead of "cannot" wording 2024-08-21 21:12:17 +01:00
xmlwriter_open_uri_error_003.phpt
xmlwriter_open_uri_error_004.phpt
xmlwriter_open_uri_error_005.phpt
xmlwriter_set_indent_string_basic_001.phpt
xmlwriter_toMemory_custom_constructor_error.phpt [RFC] Implement XMLWriter::toUri() and XMLWriter::toMemory() 2024-06-29 09:04:35 -07:00
xmlwriter_toMemory_custom_constructor.phpt [RFC] Implement XMLWriter::toUri() and XMLWriter::toMemory() 2024-06-29 09:04:35 -07:00
xmlwriter_toMemory_flush_combinations.phpt Optimize in-memory XMLWriter 2024-09-30 20:30:03 +02:00
xmlwriter_toMemory_normal_usage.phpt [RFC] Implement XMLWriter::toUri() and XMLWriter::toMemory() 2024-06-29 09:04:35 -07:00
xmlwriter_toStream_custom_constructor_error.phpt [RFC] Add stream open functions to XML{Reader,Writer} 2024-06-29 09:04:35 -07:00
xmlwriter_toStream_custom_constructor.phpt [RFC] Add stream open functions to XML{Reader,Writer} 2024-06-29 09:04:35 -07:00
xmlwriter_toStream_encoding_shiftjis.phpt Fix test on alpine/musl (#15072) 2024-07-23 16:07:26 +02:00
xmlwriter_toStream_encoding_utf8.phpt [RFC] Add stream open functions to XML{Reader,Writer} 2024-06-29 09:04:35 -07:00
xmlwriter_toStream_invalidate_stream.phpt [RFC] Add stream open functions to XML{Reader,Writer} 2024-06-29 09:04:35 -07:00
xmlwriter_toStream_normal_usage.phpt [RFC] Add stream open functions to XML{Reader,Writer} 2024-06-29 09:04:35 -07:00
xmlwriter_toStream_open_invalidated_stream.phpt [RFC] Add stream open functions to XML{Reader,Writer} 2024-06-29 09:04:35 -07:00
xmlwriter_write_attribute_ns_basic_001.phpt
xmlwriter_write_dtd_basic_001.phpt