You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2011/03/02 15:31:10 UTC

DO NOT REPLY [Bug 50786] XSSFColor.getRgb() returns null for Excel 97-2003 indexed colors

https://issues.apache.org/bugzilla/show_bug.cgi?id=50786

--- Comment #5 from andrei <an...@gmail.com> 2011-03-02 09:31:08 EST ---
Noticed that indexed colors hashtable is not stored in HSSFColor. So
getRGBOrARGB() method calls HSSFColor.getIndexHash() whitch every time (fill
color, text color, border color) builds color hashtable. It's very slowly.

HSSFColor.getIndexHash() method has comment:
"this function returns all colors in a hastable.  Its not implemented as a
 static member/staticly initialized because that would be dirty in a
 server environment as it is intended.  This means you'll eat the time
 it takes to create it once per request but you will not hold onto it
 if you have none of those requests."

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org