Combine Hac4 Data with GPS logger data

If have already a script running which is merging the data of those two devices. But after using libxml I got aware of the awful performance of the merging algorithm.

d = Array.new
asc.each do |c|
gpx.each do |e|
f = (c[:time] + @delta.to_i) - e[:time]
if f = -2
d << {:gpx => e, :asc => c}
end
end
end

I created the image which will probably help me in developing a faster algorithm.

Teilen