flowr-analysis / flowr

A program slicer and dataflow analyzer for the R programming language.
https://github.com/flowr-analysis/flowr/wiki
GNU General Public License v3.0
24 stars 2 forks source link

Add ability to invalidate filetoken #1081

Open LukasPietzschmann opened 1 week ago

LukasPietzschmann commented 1 week ago

When processing a lot of files, it would be nice to have the ability to invalidate filetokens that are no longer needed. This would allow flowr to free up some precious memory allocated to completed analysis requests.

This would, imo, improve flowr's ability to just sit there and run for a while without requiring a restart after some time.

EagleoutIce commented 1 week ago

Given the analyses desired this may be related to #1037 which may make some of this use-cases obsolete. As an intermediate solution one could just re-use a given file-token (maybe with an empty content string). But indeed a dedicated cleanup message would be helpful (assuming well-intent from the client).

LukasPietzschmann commented 1 week ago

I did not think about simply reusing a filetoken. That would at least solve my issue.

If you want to, you can close this issue then. Or keep it open to track a possible cleanup message. You decide :)

EagleoutIce commented 1 week ago

Should this be better documented then?

Maybe we should outsource the documentation update and keep this for an explicit clean message