When building nested elements using xml.dom.minidom methods such as appendChild() that have a dependency on _clear_id_cache() the algorithm is quadratic. Availability can be impacted when building excessively nested documents.CreditsJacob WallsShai BergerNatalia BidartSeth LarsonReferenceshttps://github.com/python/cpython/pull/142146https://github.com/python/cpython/issues/142145https://github.com/python/cpython/commit/08d8e18ad81cd45bc4a27d6da478b51ea49486e4https://github.com/python/cpython/commit/027f21e417b26eed4505ac2db101a4352b7c51a0https://github.com/python/cpython/commit/ddcd2acd85d891a53e281c773b3093f9db953964