rascal icon indicating copy to clipboard operation
rascal copied to clipboard

maven rascal packager takes 6 minutes to rewrite the .tpl files of typepal project

Open jurgenvinju opened this issue 4 years ago • 1 comments

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.

jurgenvinju avatar Apr 02 '21 11:04 jurgenvinju

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.

DavyLandman avatar Apr 02 '21 12:04 DavyLandman