mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 19:37:29 +00:00
Rewrite the Pack backend
The new pack backend is an adaptation of the original git.git code in `sha1_file.c`. It's slightly faster than the previous version and severely less memory-hungry. The call-stack of a normal pack backend query has been properly documented in the top of the header for future reference. And by properly I mean with ASCII diagrams 'n shit.
This commit is contained in:
parent
71db842fac
commit
58d06cf120
2290
src/odb_pack.c
2290
src/odb_pack.c
File diff suppressed because it is too large
Load Diff
@ -2,6 +2,8 @@
|
||||
#define INCLUDE_util_h__
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
|
||||
#define bitsizeof(x) (CHAR_BIT * sizeof(x))
|
||||
#define MSB(x, bits) ((x) & (~0ULL << (bitsizeof(x) - (bits))))
|
||||
|
||||
/*
|
||||
* Don't wrap malloc/calloc.
|
||||
|
Loading…
Reference in New Issue
Block a user