Skip to content

Commit 45906dc

Browse files
committed
8223658: Performance regression of XML.validation in 13-b19
Reviewed-by: sviswanathan Backport-of: 50eb86d
1 parent 98f17df commit 45906dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/dom/DeferredDocumentImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
33
*/
44
/*
55
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -42,7 +42,7 @@
4242
* @xerces.internal
4343
*
4444
* @since PR-DOM-Level-1-19980818.
45-
* @LastModified: Oct 2017
45+
* @LastModified: May 2019
4646
*/
4747
public class DeferredDocumentImpl
4848
extends DocumentImpl
@@ -69,7 +69,7 @@ public class DeferredDocumentImpl
6969
// protected
7070

7171
/** Chunk shift. */
72-
protected static final int CHUNK_SHIFT = 11; // 2^11 = 2k
72+
protected static final int CHUNK_SHIFT = 8; // 2^8 = 256
7373

7474
/** Chunk size. */
7575
protected static final int CHUNK_SIZE = (1 << CHUNK_SHIFT);
@@ -78,7 +78,7 @@ public class DeferredDocumentImpl
7878
protected static final int CHUNK_MASK = CHUNK_SIZE - 1;
7979

8080
/** Initial chunk size. */
81-
protected static final int INITIAL_CHUNK_COUNT = (1 << (16 - CHUNK_SHIFT)); // 2^16 = 64k
81+
protected static final int INITIAL_CHUNK_COUNT = (1 << (13 - CHUNK_SHIFT)); // 32
8282

8383
//
8484
// Data

0 commit comments

Comments
 (0)