Re: anybody knows an apache-license-compatible impl of Integer.parseInt?

2009-02-11 Thread Steve Loughran
Zheng Shao wrote: We need to implement a version of Integer.parseInt/atoi from byte[] instead of String to avoid the high cost of creating a String object. I wanted to take the open jdk code but the license is GPL: http://www.docjar.com/html/api/java/lang/Integer.java.html Does anybody know an

Re: anybody knows an apache-license-compatible impl of Integer.parseInt?

2009-02-10 Thread Min Zhou
Hey zheng, Maybe you can try ragel ,which can compile very effective codes for your fsm from regex. The atoi function produced by ragel can run faster than glibc's. It also targets java. http://www.complang.org/ragel/ On Wed, Feb 11, 2009 at 4:18 AM, Zheng Shao wrote: > We need to implement a

anybody knows an apache-license-compatible impl of Integer.parseInt?

2009-02-10 Thread Zheng Shao
We need to implement a version of Integer.parseInt/atoi from byte[] instead of String to avoid the high cost of creating a String object. I wanted to take the open jdk code but the license is GPL: http://www.docjar.com/html/api/java/lang/Integer.java.html Does anybody know an implementation that