Steven G. Johnson

Results 1086 comments of Steven G. Johnson

@johnnychen94, I have no immediate plans to work on JpegTurbo — I mainly put it there as a starting point for later work. I would be happy to transfer it...

I don't think libjpeg has anything specifically for EXIF data, which is embedded in a single segment of a JPEG file. You can use libjpeg to extract that segment, I...

It looks like the parsing makes very heavy use of memory allocation, with lots of temporary objects. This is currently slow in Julia, although there are pending improvements to the...

Can we update this in light of #140 by @TotalVerb?

With the current JSON.jl and Julia 0.4, I get: ``` jl $ python json_performance.py 2.7.10 |Anaconda 2.3.0 (x86_64)| (default, Oct 19 2015, 18:31:17) [GCC 4.2.1 (Apple Inc. build 5577)] generating...

See #236, which addresses several of these points, although further optimization is of course possible.

I can't reproduce your test case. The final line gives ```jl julia> isanchored(stream) true ``` for me. `peek` only resets the anchor if the buffer needs to be refilled —...

Actually, I take it back. `peek` and other read operations should never remove the anchor or the anchored data, even when the buffer needs refilling. It will resize the buffer...

See the discussion here: https://discourse.julialang.org/t/allocation-and-slow-down-when-of-types-involved-increase-slower-than-c-virtual-methods/87656/3 A possible workaround is https://github.com/YingboMa/Unityper.jl

The literal way to emulate C++'s vtables in C would be to use a table of function pointers inside the struct. e.g. we do this in FFTW here: https://github.com/FFTW/fftw3/blob/9426cd59106ffddde1f55131c07fa9c562fa2f8e/kernel/ifftw.h#L497-L507