increased default XML name pool size, added Document constructor taking name pool size as argument

This commit is contained in:
Guenter Obiltschnig
2016-10-07 10:43:34 +02:00
parent d9c3c5270a
commit 2817376436
3 changed files with 38 additions and 2 deletions

View File

@@ -25,6 +25,11 @@
#include "Poco/XML/Name.h"
#ifndef POCO_XML_NAMEPOOL_DEFAULT_SIZE
#define POCO_XML_NAMEPOOL_DEFAULT_SIZE 509
#endif
namespace Poco {
namespace XML {
@@ -37,7 +42,7 @@ class XML_API NamePool
/// local name and a qualified name.
{
public:
NamePool(unsigned long size = 251);
NamePool(unsigned long size = POCO_XML_NAMEPOOL_DEFAULT_SIZE);
/// Creates a name pool with room for up to size strings.
const Name& insert(const XMLString& qname, const XMLString& namespaceURI, const XMLString& localName);