Commits
Commit:
0110411e1e32fa44d6e086f652dac916fc8707cf
Date:
Wed Apr 13 16:51:01 2022
UTC
partial revert of "abstract over evbuffers"
partial revert of commit d54dd8160b88709f3d243e1410a781e5de7fc187. We
don't really need an abstraction over "printf-like" things. I can
just use plain old FILEs. open_memstream (which conforms to POSIX.1)
is what I should have used from the beginning in my mcache
implementation.
Commit:
d54dd8160b88709f3d243e1410a781e5de7fc187
Date:
Wed Apr 13 15:44:56 2022
UTC
parser/serialize: abstract over evbuffers
the serialize "method" will soon be used in other context where using
evbuffers would be awkward. Introduce a small abstraction over it: a
printfn (print function) fprintf-like.
Commit:
fe84b7508f733106d346acf1b120951c78ad77a1
Date:
Wed Jan 19 23:56:39 2022
UTC
switch the cache to the new parser_serialize API
Commit:
946d3439b93be9bac9eb246d9ff40f9e02e259a8
Date:
Wed Jan 12 12:24:54 2022
UTC
crank up cache limits
delete pages that are older than one hour, and scan the cache only once
every five minutes. The previous defaults were a bit too much
conservative.
Commit:
a96922a16759643ba6a0bc3d9781e97fedbf1107
Date:
Tue Jan 11 22:03:54 2022
UTC
drop useless struct
instead of keeping the struct mcache that's private to mcache.c and
used only once, just define its fields as (static) variables. While
here, mark as static also gemtext_prefixes.
Commit:
4b4c3458436c646c06d295cc56e990eef9897c6f
Date:
Tue Jan 11 21:59:21 2022
UTC
timer-based cache removal: delete cached pages older than 15 minutes
Commit:
befa807e5bfef47c79310f7ab3b7038042a49ee8
Date:
Tue Jan 11 18:14:53 2022
UTC
cache: keep track of the total size and number of cached pages
Commit:
ffcd827cfe2431a4f2ba116bc00b205d12cdf6df
Date:
Tue Jan 11 17:58:12 2022
UTC
mcache_tab: free previous copies of that page
Commit:
9d65b1d9ae3209a8a2bc8e8c376dede4f71290ce
Date:
Tue Jan 11 17:21:40 2022
UTC
move util.c declarations in utils.h
it's not spelled `util.h' because otherwise it'd get included instead
of /usr/include/util.h
Commit:
036c104e0d5b8758a8cf72c9085af23956fdfa6f
Date:
Tue Jan 11 17:12:33 2022
UTC
de-duplicate hash_* function: collect them in util.c
Commit:
4e3871f5a61f3d1781f0e1b273ab3c7eeb9924f7
Date:
Tue Jan 11 17:05:50 2022
UTC
save parser name across mcache_tab/mcache_lookup
Commit:
8f3c9af8369ac653695ca22777db99bfa1162cfe
Date:
Tue Jan 11 16:49:32 2022
UTC
simplify the caching API
- don't expose the evbuffer where we store the cached page
- cache to/from tabs instead of buffers
Commit:
d5af38ccfe6c94218f4d7ab8d6aaf382e7dede80
Date:
Mon Jan 10 23:24:17 2022
UTC
add an in-memory cache store
see github issue #1
Omar Polo