[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] RFC: SimpleAttributeSet performace tweak
From: |
Anthony Balkissoon |
Subject: |
[cp-patches] RFC: SimpleAttributeSet performace tweak |
Date: |
Tue, 27 Sep 2005 14:22:22 -0400 |
Rather than checking that one set contains the other set AND vice versa,
I think it will be faster to check that one contains the other and the
two sets have the same size.
OK to commit?
2005-09-27 Anthony Balkissoon <address@hidden>
* javax/swing/text/SimpleAttributeSet.java:
(isEqual): Rather than check that each set contains the other, check
that one set contains the other and that the sets have the same size.
This should improve performace.
--Tony
SimpleAttributeSetEqualsImprovement.diff
Description: Text Data
- [cp-patches] RFC: SimpleAttributeSet performace tweak,
Anthony Balkissoon <=