[Mono-bugs] [Bug 480178] System.Globalization.CharUnicodeInfo.GetUnicodeCategory() does not handle surrogate characters appropriately.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 21 05:55:45 EDT 2010



--- Comment #16 from Paolo Molaro <lupus at novell.com> 2010-04-21 09:55:44 UTC ---
I was playing with a bi-level table compression myself a few months ago, so the
general approach is fine by me.
On the specific implementation, I'm not sure some of the additional complexity
in your changes is worth it. Let's consider a 256 byte page size. Any category
lookup could be done with:
  char_data [char_start [val >> 8] + (val & Oxff)]
this is more compact and in most cases should be better than the branchy code
in your patch. Care to try that out or did you already test something similar?
As for multiple versions of the data, we likely just want to use the latest,
but once we have numbers about the cost of this we could reconsider.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list