98 Star 574 Fork 123

闲.大赋(李家智) / Beetl

 / 详情

FloatingDecimal

Backlog
owner
Opened this issue  
2020-01-10 19:11

jdk8 使用了sun.misc.FloatingDecimal ,用于优化float&double 转string,beetl的代码做个类似的优化(),采用了FloatingIOWriter。建议使用FloatingDecimal代替


 private static final ThreadLocal<FloatingDecimal.BinaryToASCIIBuffer> threadLocalBinaryToASCIIBuffer = new ThreadLocal<FloatingDecimal.BinaryToASCIIBuffer>() {
        protected FloatingDecimal.BinaryToASCIIBuffer initialValue() {
            return new FloatingDecimal.BinaryToASCIIBuffer();
        }
    };

Comments (1)

另外一个优化点,可以考虑吧int和float 转化string所有的buffer单独拿出来放到Context里

闲.大赋(李家智) added
 
wontfix
label
闲.大赋(李家智) added
 
性能优化
label
闲.大赋(李家智) removed
 
wontfix
label

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(1)
29 xiandafu 1678706040
Java
1
https://gitee.com/xiandafu/beetl.git
git@gitee.com:xiandafu/beetl.git
xiandafu
beetl
Beetl

Search