6 years ago 16dcbf911a Stefan Sperling
remove debug code accidentally committed
6 years ago 72eb343178 Stefan Sperling
look up deltas in the correct pack file
6 years ago 040bf4a150 Stefan Sperling
stop using fmemopen(); that code path didn't work correctly
6 years ago 0a585a0d64 Stefan Sperling
remove GOT_ERR_NO_MEM, we can just use errno in those cases
6 years ago 718b3ab0e3 Stefan Sperling
rename the library-internal headers again to a common prefix
6 years ago 4589e373ff Stefan Sperling
remove mmap() stuff; checkout is fast enough for now
6 years ago 0bd0053c34 Stefan Sperling
handle empty files in got_packfile_extract_object()
6 years ago d0f3be7ced Stefan Sperling
initialize some output variables on failure
6 years ago 6bb255dc42 Stefan Sperling
don't dup_packidx() during cache lookup; fixes performance :)
6 years ago 40426839c0 Stefan Sperling
remove unused argument from get_delta_chain_max_size()
6 years ago c52ac529dc Stefan Sperling
extract objects smaller than DELTA_RESULT_SIZE_CACHED_MAX to memory
6 years ago a53d2f1379 Stefan Sperling
cache delta data in struct got_delta directly
6 years ago 6d89869a98 Stefan Sperling
use cached packfile in open_packed_object()
6 years ago 999f19f65e Stefan Sperling
use cached packfile in resolve_ref_delta()
6 years ago e1ad6ebcf6 Stefan Sperling
remove path_packfile from struct got_delta_cache; add a counter instead
6 years ago f7e127f30c Stefan Sperling
move delta cache into struct got_pack
6 years ago 7e656b930d Stefan Sperling
add struct got_pack; some preparation for mmap, which isn't used yet
6 years ago b29656e27e Stefan Sperling
set obj->size of packed deltified objects to object's actual size
6 years ago 65cf1e8015 Stefan Sperling
revert the pack file handle cache again; needs more thought
6 years ago ef2bccd93f Stefan Sperling
stop opening pack files redundantly to read deltas
6 years ago 6845d28477 Stefan Sperling
use SEEK_SET instead of SEEK_CUR after opening packfile
6 years ago 87c99799b9 Stefan Sperling
start caching file handles to packfiles
6 years ago ea35256be5 Stefan Sperling
avoid a round-trip via tempfile when reading packed commits
6 years ago 40dc5ff850 Stefan Sperling
rename a function for clarity
6 years ago e0ab43e7e3 Stefan Sperling
avoid a round-trip of data through a temp file when reading trees