Commit Briefs

d7b5a0e827 Stefan Sperling

inline struct got_object_id in struct got_object_qid

Saves us from doing a malloc/free call for every item on the list. ok op@


c0df59665d Stefan Sperling

wrap overlong lines


d3c116bf72 Stefan Sperling

cache raw objects in order to speed up gotadmin pack


dbdddfee14 Christian Weisgerber

switch from SIMPLEQ to equivalent STAILQ macros

The singly-linked tail queue macros were added to OpenBSD 6.9 and are more widely available on other systems. ok stsp



56e0773df7 Stefan Sperling

convert tree entries from SIMPLEQ to an array




a0de39f397 Stefan Sperling

fix build on OpenBSD/sparc64 (gcc)


79c99a64af Stefan Sperling

don't leak objects which can't be cached


01cd76145e Stefan Sperling

add cache debug output for too large elements


a60c9e772e Stefan Sperling

don't cache objects larger than 1MB


2ee32b237b Stefan Sperling

fix build with -DGOT_OBJ_CACHE_DEBUG


638f902404 Stefan Sperling

rename got_error_prefix_errno() to got_error_from_errno()


230a42bdc6 joshua stein

got_error_from_errno -> got_error_prefix_errno

also add got_error_prefix_errno2 and got_error_prefix_errno3 which should hopefully all be merged into a single function with variadic args (but can't alloc mem)



cb103d042c Stefan Sperling

allow got_object_idset_for_each() to return an error


f054b67ad0 Stefan Sperling

remove object_idcache; use object_idset instead


507aef8f8e Stefan Sperling

no need to zero object cache entries during allocation


d83eb5cd1c Stefan Sperling

make id cache eviction more efficient



9185b86391 Stefan Sperling

tree cache size can be reduced without harmful effects