Skip to content

Commit

Permalink
Revert "Added dd for buffering. Wil slow things down, but probably wo…
Browse files Browse the repository at this point in the history
…n't dead lock. Ugly workaround."

This reverts commit 2a5c158.

Issue
JuliaLang/julia#22832
is fixed with
JuliaLang/julia#22886
  • Loading branch information
visr committed Aug 2, 2017
1 parent 079ccfb commit 2613731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fileio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ end

function load(f::File{format"LAZ"})
# read las from laszip, which decompresses to stdout
open(pipeline(`laszip -olas -stdout -i "$(filename(f))"`, `dd bs=2`), "r") do s
open(`laszip -olas -stdout -i "$(filename(f))"`) do s
load(s)
end
end
Expand Down Expand Up @@ -80,7 +80,7 @@ end

function save(f::File{format"LAZ"}, header::LasHeader, pointdata::Vector{T}) where T <: LasPoint
# pipes las to laszip to write laz
open(pipeline(`dd bs=2`, `laszip -olaz -stdin -o "$(filename(f))"`), "w") do s
open(`laszip -olaz -stdin -o "$(filename(f))"`, "w") do s
savebuf(s, header, pointdata)
end
end
Expand Down

0 comments on commit 2613731

Please sign in to comment.