[armedbear-devel] Fw: SparseChars patch
![](https://secure.gravatar.com/avatar/7d3b9ee133249361afc2b73eb4639038.jpg?s=120&d=mm&r=g)
ABCL, Here is the SparseChars patch. It shouldn't pass more or less ANSI-TESTs. but will improve performance due to the fact it uses less java heap and copies less. The one thing I might do later is stop using the character iterator (CharHashMap would get a copyToOther(CharHashMap)).. but for now its sane.
![](https://secure.gravatar.com/avatar/d360ec751eb90bc963c5b03544d88cf5.jpg?s=120&d=mm&r=g)
2009/10/5 <logicmoo@gmail.com>:
ABCL, Here is the SparseChars patch. It shouldn't pass more or less ANSI-TESTs. but will improve performance due to the fact it uses less java heap and copies less. The one thing I might do later is stop using the character iterator (CharHashMap would get a copyToOther(CharHashMap)).. but for now its sane.
With this patch, the performance is better, but still a lot worse than what we had before increasing CHAR_MAX. If I apply this patch and restore CHAR_MAX to 255, the performance reverts very close to original. Any thoughts?
participants (2)
-
logicmoo@gmail.com
-
Ville Voutilainen