yyjson icon indicating copy to clipboard operation
yyjson copied to clipboard

xjb : float/double to string algorithm

Open xjb714 opened this issue 1 month ago • 1 comments

src : https://github.com/xjb714/xjb benchmark : https://github.com/xjb714/f2dec_bench

Thank you. This algorithm was inspired by my reading of your code and there is a mathematical proof in the paper. I tested the performance of the relevant algorithms (dragonbox, yy, ryu, teju, schubfach), but only included the binary to decimal part. After completing the decimal to string, I measured again, and the results might be inconsistent. The above contains source code links and test links.

xjb714 avatar Oct 31 '25 19:10 xjb714

I took a quick look at your code. From what I can see, xjb appears almost identical to my yy_double implementation, with only a few minor modifications. I didn't notice any meaningful performance improvement.

ibireme avatar Nov 01 '25 17:11 ibireme