perf: too much caching? #85

Closed
opened 2024-11-10 10:49:51 +01:00 by Anri · 1 comment
Owner

check if a cached function with #[once(time = t)] if it call another #[once(time = t)]
in this case, this could lead to async time cache and so never updating the cache

Example: /c cache the response and also the md files in "read_file"

check if a cached function with `#[once(time = t)]` if it call another `#[once(time = t)]` in this case, this could lead to async time cache and so never updating the cache > Example: `/c` cache the response and also the md files in "`read_file`"
Anri added the
bug
optimization
labels 2024-11-10 10:49:57 +01:00
Author
Owner

we should split function

[cached]
fn a

[once]
fn b

fn c {
  a();
  b();
}

instead of the current:

[cached]
fn a

[once]
fn c {
  a();
  b_work;
}
we should split function ``` [cached] fn a [once] fn b fn c { a(); b(); } ``` instead of the current: ``` [cached] fn a [once] fn c { a(); b_work; } ```
Anri referenced this issue from a commit 2024-12-12 15:49:07 +01:00
Anri closed this issue 2024-12-12 15:49:08 +01:00
Anri reopened this issue 2024-12-12 15:49:10 +01:00
Anri closed this issue 2024-12-12 15:49:13 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Anri/mylloon.fr#85
No description provided.