detect files are binary before extracting the whole file

Bug #390418 reported by Martin Pool
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned

Bug Description

When bzr's going to just show "binary files differ" it doesn't need to extract the whole potentially large file to say so. It just needs to read enough of the start of the file to know that one or the other of them is binary, or (post bug 218128) the rule or configuration that says to treat them as binary.

(See also bug 218128, and bug 71307, slightly related.)

Revision history for this message
John A Meinel (jameinel) wrote :

Or alternatively just read a flag that states the file is considered "binary" and then only look at whether sha1_x == sha1_y

Jelmer Vernooij (jelmer)
tags: added: performance
tags: added: diff
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.