Skip to content
Permalink
Browse files
8223658: Performance regression of XML.validation in 13-b19
Reviewed-by: sviswanathan
Backport-of: 50eb86d
  • Loading branch information
RealCLanger committed Sep 28, 2021
1 parent 98f17df commit 45906dc1e01c18db30ebe761b022805053cad536
Showing 1 changed file with 4 additions and 4 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -42,7 +42,7 @@
* @xerces.internal
*
* @since PR-DOM-Level-1-19980818.
* @LastModified: Oct 2017
* @LastModified: May 2019
*/
public class DeferredDocumentImpl
extends DocumentImpl
@@ -69,7 +69,7 @@
// protected

/** Chunk shift. */
protected static final int CHUNK_SHIFT = 11; // 2^11 = 2k
protected static final int CHUNK_SHIFT = 8; // 2^8 = 256

/** Chunk size. */
protected static final int CHUNK_SIZE = (1 << CHUNK_SHIFT);
@@ -78,7 +78,7 @@
protected static final int CHUNK_MASK = CHUNK_SIZE - 1;

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

//
// Data

1 comment on commit 45906dc

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.