6 years ago Stefan Sperling
cache delta data in struct got_delta directly
use cached packfile in open_packed_object()
fix memleak in test helper function print_tree_object()
fix fd leak in got_object_open()
use cached packfile in resolve_ref_delta()
remove path_packfile from struct got_delta_cache; add a counter instead
move delta cache into struct got_pack
add struct got_pack; some preparation for mmap, which isn't used yet
set obj->size of packed deltified objects to object's actual size
revert the pack file handle cache again; needs more thought
stop opening pack files redundantly to read deltas
use SEEK_SET instead of SEEK_CUR after opening packfile
start caching file handles to packfiles
allow a profiled build with 'make PROFILE=yes'
i committed the profile build stuff again... back it out
avoid an extra memcpy in got_inflate_to_mem()
need to subtract hdrlen from tree data in got_object_tree_open()
avoid a round-trip via tempfile when reading packed commits
rename a function for clarity
avoid a round-trip of data through a temp file when reading trees
These changes enabled profiling.
process small deltas in memory; unfortunately it is not faster...
remove a useless and leaky allocation
In dump_delta_chain(), don't open the packfile if it's not needed.
fix open file handle leak in dump_delta_chain()