OK, I did a little more spelunking and it seems that get-doc and get-metas
are basically already pagenode-accepting sugar for cached-doc and
cached-metas.
So maybe the speed gains I saw in the commit I linked were mostly due to
the parts where I replaced calls to dynamic-require.
This being
Finally got around to using[1] cached-doc and cached-metas to get some nice
speed improvements[2].
I hit a tiny speed bump early on because I didn’t read carefully and I
thought these functions were essentially drop-in replacements for get-doc
and get-metas. But there are two differences: