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 I can use for hive (apache license)?
I also need to do it for Byte, Short, Long, and Double. Just don't want to go over all the
corner cases.
Solutions from c/c++ are OK (as long as the license does not conflict). I can translate it.
Zheng
|