Cache post data using sled

Each post fetch was taking 800ms TAT, so I'm using sled to fetch and
cache post data. This reduced TAT down to 2ms.

However, this could cause storage issues. I must design some sort of
resource manager to clean up cache.
This commit is contained in:
realaravinth
2021-11-02 15:30:25 +05:30
parent 133c4a96b3
commit af3c43dbf5
8 changed files with 127 additions and 30 deletions

View File

@ -34,11 +34,8 @@
<span><.= text .></span>
<.}.>
<.}.>
<. if cur < p.text.len() {.>
<.= p.text.slice(cur..) .>
<.}.>
<.}.>
</p>
<!-- markup.type_ = [ "CODE", "A", "EM", "STRONG" -->