Code-Inspect / flowr

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

Speed up Environment Fingerprinting #763

Closed EagleoutIce closed 1 month ago

EagleoutIce commented 1 month ago

When calculating an environment-fingerprint during slicing, we should speed this up by reusing previously calculated hashes for the root environment/shared environments. We can, for example, re-use the id of the environment to speed up fingerprint retrieval.

EagleoutIce commented 1 month ago

Furthermore, environments do not need names!

EagleoutIce commented 1 month ago

Maybe we can just use the replacer to ignore the built-in environment on every fingerprint