This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: java.lang.Character


Per Bothner wrote:
> 
> Sorry.  Would it make sense to write a little Java application that
> implements CharData.java, and writes out java-chartables.h?  That
> should be simple - and it might be useful for other tasks.  The other
> part of the task - reacpling the Character methods by native methods
> and moving them to natCharacter.cc should be easy if tedious.

Cool idea!  Perl is much nicer when it comes to sheer text manipulation,
which is what this task is... Then again, perl is much harder to
maintain, and gnu.java.lang.CharData could be useful elsewhere, like you
say.  So I'll take a crack at writing a Java program to convert the
interface.

> I haven't looked at hwo the tables work, so I can't say.  If you're
> talking about just a few kilobytes extra space then it may be worth it
> to save an extra lookup.

Nope, multiple 2-level tables would be on the order of 200k, larger than
a typical cache page.  3-level tables it is.

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]