Commits


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


revert accidental changes from 9feb4ff2689af67633c98892e721ccd407ea1c92 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()


propagate error from delta cache insertion; fixes mem leak


add a delta cache; saves us from reading + decompressing some deltas


add a macro for zbuf buffer size


restrict in-memory delta processing to 4MB


process delta chains in memory if max size is < 32 MB