For floats, the entry point 
is https://github.com/JuliaLang/julia/blob/master/base/grisu.jl#L119 . You 
should follow the code from there, with most of the code in files 
within https://github.com/JuliaLang/julia/tree/master/base/grisu/ . As you 
can see its quite a lot of code; this is not a simple problem.  

For integers, the conversion is 
in https://github.com/JuliaLang/julia/blob/master/base/intfuncs.jl#L249

Regards
-
Avik

On Saturday, 1 August 2015 06:05:59 UTC+1, [email protected] wrote:
>
> How are numbers converted to strings in Julia? Specifically, where in the 
> Julia source is this conversion performed? 
>
> I ask because my x86 assembly implementation of 64-bit integer to string 
> conversion is on average about 1.5x slower than Julia. Either Julia is 
> doing something very smart, or my assembly is doing something very dumb, or 
> perhaps both.
>
> Thanks!
>

Reply via email to