Title: RE: a performance issue
Sandy,
The answer to 1) is no check needs to be made, because ArrayIndexOutOfBoundsException is a RuntimeException, and will be thrown by the VM if an incorrect subscript is referenced.
My comment to 2) (and the whole problem in general), (with the one caveat
Hello,
i've one problem with the Xerces Parser. After parsing a XML document all
empty elements are rewritten in a short format. For e.g. original
after parsing .
Is there any way to disabled it or any method to convert it back?
The problem is when i try to put some text in this format , then
Sandy Gao writes:
>1. When the array is big enough, no exception will be thrown. Then whether
>the following (a) is faster than (b)?
>a. fOffset[chunk][index] == 0;
>b. if (fOffset.length <= chunk || fOffset[chunk] == null ||
>fOffset[chunk].length <= index)
>(a) looks simpler, but doesn't it n
Hi Tom & Brad,
Thanks for your reply. Though what you mentioned (loop iterations) is not
exactly the case I'm worrying, it definitely helps me understanding the
problem clearly.
Consider a method (from org.apache.xerces.utils.StringPool):
private boolean ensureCapacity(int chunk, int index) {
[EMAIL PROTECTED] wrote:
> But my understanding is that throw-catch exceptions is much more expensive
> than get the array size directly: arrayVal.length. So there would be a big
> performance hit if we resize arrays frequently. (In fact, we do resize
> StringPool very often.)
>
> So could anyone
Title: RE: a performance issue
My guess is because of something very interesting I recently found in some parsing I was doing:
Looping through an array is FASTER in a while-loop with a termination condition of boolean (true), where the ArrayOutOfBoundsException is handled, than it is in a fo
Hi all,
In many classes, to detect the need of array-resizing, we try to access a
specific position, and do the resizing when
"ArrayIndexOutOfBoundsException" is caught (or NullPointerException for
multidimensional arrays).
But my understanding is that throw-catch exceptions is much more expensi
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2195
*** shadow/2195 Fri Jun 15 10:12:41 2001
--- shadow/2195.tmp.22981 Fri Jun 15 10:12:42 2001
***
*** 0
--- 1,39
+ ++
+ | Xerces2: XMLAttrib
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2194
*** shadow/2194 Fri Jun 15 10:06:37 2001
--- shadow/2194.tmp.22951 Fri Jun 15 10:06:37 2001
***
*** 0
--- 1,37
+ ++
+ | Xerces2: problems
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2189
*** shadow/2189 Thu Jun 14 13:12:10 2001
--- shadow/2189.tmp.22906 Fri Jun 15 09:58:36 2001
***
*** 7,13
| Severity: Normal OS/Version: Other |
| Priority: Other
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2187
*** shadow/2187 Thu Jun 14 12:09:14 2001
--- shadow/2187.tmp.22895 Fri Jun 15 09:58:12 2001
***
*** 7,13
| Severity: MinorOS/Version: Windows NT/2K |
| Priority: Other
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1931
*** shadow/1931 Tue May 29 03:42:20 2001
--- shadow/1931.tmp.22879 Fri Jun 15 09:57:06 2001
***
*** 4,13
|Bug #: 1931Product: Xerces-J|
| Status: NEW
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2185
*** shadow/2185 Thu Jun 14 09:25:48 2001
--- shadow/2185.tmp.22724 Fri Jun 15 09:20:33 2001
***
*** 2,9
| attribute decl with type="garbage" not reporting error |
+---
Title: FW: Looking for ways to contribute
Hey X-Dev bunch,
I am tan, rested, and ready, back from time off over the last month, and ready to check out some development work on X2. (Ok, I am rested and ready, but I am far from tan.) I am trying to find out what parts of X2 currently need at
Hi. This bug was fixed a week ago. I tried your program and xml files, no
error was reported on "test2.xml". If you get the latest code from CVS,
hopefully, the problem would disappear. Feel free to contact me if you
still have difficulties with ID/IDREF.
Cheers,
Sandy Gao
Software Developer, IBM
Hi,
I have downloaded Xerces-2_0_0_alpha, and want use the
feature of
"http://apache.org/xml/features/domx/grammar-access";,
I have turned on the feature use
DOMParser p=new DOMParser();
p.setFeature("http://apache.org/xml/features/domx/grammar-access";,
true);
But the feature doesn't work and re
Hi
I am looking for some advice and help with an application i am developing.
It can currently validate a document against a schema and report where the
errors are in the document. To improve this application i want to be able to
gather all of the successful nodes into another document, and all t
17 matches
Mail list logo