rascal
rascal copied to clipboard
maven rascal packager takes 6 minutes to rewrite the .tpl files of typepal project
Describe the bug
See https://ci.usethesource.io/job/usethesource/job/typepal/job/master/
The packager reads every .tpl file in the target folder and visits the contents using a visit statement and replaces loc instances
that match a certain prefix with another prefix.
Suspicion is that file IO is the bottleneck here. Considering that these files are in a real folder on disk, this should not take this long IMHO. Have to look into this because compiling the visit probably won't make the difference.
Have to validate this hypothesis first though. Might be something weird in the interpreter's visit implementation too.
Interesting, the drive is an SSD, so I/O overhead shouldn't be that big.
You can actually turn on profiling for rascal from the outside. There is a system property you can set.