summaryrefslogtreecommitdiff
path: root/yarns/building.yarn
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-06-18 14:07:14 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-06-19 16:21:37 +0000
commit6b4cb5a5a58d5a536369a20612ff7c656cdd0921 (patch)
tree38d7bbb4248d9eb709d59830f8b254889c0a0283 /yarns/building.yarn
parentd9bd0a5781b30663da240e8c8152ffb4843db2ca (diff)
downloadmorph-6b4cb5a5a58d5a536369a20612ff7c656cdd0921.tar.gz
Don't check if a file exists before trying to read it
We used to check whether a file existed before trying to read it. We used to be able to get away with only looking at the top-level directory, which made using ls-files before trying to cat-file it better. Unfortunately, we need to look at the files in subdirectories now, so this no longer works. We could make it include files in subdirectories, but for repositories with many files, you would end up reading a file listing longer than the morphology, so even in the slow case of needing to read the entire morphology file, it would be faster to attempt to read the file first. So now we beg forgiveness rather than asking permission.
Diffstat (limited to 'yarns/building.yarn')
0 files changed, 0 insertions, 0 deletions