note 118732 added to domnode.c14n
| From: | lordbaco | Date: | Thu, 28 Jan 2016 09:57:25 +0000 |
| Subject: | note 118732 added to domnode.c14n | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204785@lists.php.net to get a copy of this message | ||
Good to know:
<< Due to a known issue in XML canonicalization in PHP, processing large metadata files in
SimpleSAMLphp takes a big amount of resources, with that amount growing approximately by the square
of the number of entities in the metadata set >>
https://simplesamlphp.org/metaprocessing
<< The C14N() function appears to have a runtime that is O(N^2) (or possibly worse?) depending
on input size, which means that it becomes very slow as the input grows. For example, an input with
around 196000 nodes takes about 290 seconds, while an input with 486000 nodes takes 2200 seconds.
>>
https://bugs.php.net/bug.php?id=53655
We had the same issue with a 4.1 MB XML (105k lines). The sample code of ticket #53655 takes 1h36
minute to canonicalize it!
----
Server IP: 72.52.91.14
Probable Submitter: 212.41.222.237
----
Manual Page -- http://php.net/manual/en/domnode.c14n.php
Edit -- https://master.php.net/note/edit/118732
Del: integrated -- https://master.php.net/note/delete/118732/integrated
Del: useless -- https://master.php.net/note/delete/118732/useless
Del: bad code -- https://master.php.net/note/delete/118732/bad+code
Del: spam -- https://master.php.net/note/delete/118732/spam
Del: non-english -- https://master.php.net/note/delete/118732/non-english
Del: in docs -- https://master.php.net/note/delete/118732/in+docs
Del: other reasons-- https://master.php.net/note/delete/118732
Reject -- https://master.php.net/note/reject/118732
Search -- https://master.php.net/manage/user-notes.php