Perl 6 工作文件夹中的 .precomp...repo-id 子文件夹 [英] .precomp...repo-id subfolder in working folder of Perl 6

查看:56
本文介绍了Perl 6 工作文件夹中的 .precomp...repo-id 子文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常会在工作目录中找到隐藏的子文件夹,据我所知,这些子文件夹是由 Perl 6 编译器生成的,例如:

I usually find hidden subfolders in working directories, which, as I suppose, were produced by the Perl 6 compiler, e.g.:

.precomp/0717742595706FA8D59800F9F9F7074236546DE7.1505852292.23535/0B/0BDF8C54D33921FEA066491D8D13C96A7CB144B9.repo-id

所以,我有两个问题:

  1. 正常吗?

  1. Is it normal?

它对编译器来说是必不可少的还是有办法避免的?

Is it indispensable for the compiler or there is a way to avoid it?

推荐答案

.precomp 文件夹包含 Perl 6 模块的预编译形式.

The .precomp folder houses the precompiled form of Perl 6 modules.

第一次使用模块时,它会被编译并存储在 .precomp 中,这样就不必再次编译它.(目前只有模块,没有程序)

The first time you use a module it gets compiled and stored in .precomp so that it doesn't have to be compiled it again. (currently only modules, not programs)

您可以删除目录,您的代码将继续运行.它只会更慢.请注意,除非无法写入目录,否则下次使用模块时将再次重新创建它.我偶尔会自己删除;虽然那是因为我经常从 git 重建 Rakudo.我这样做只是为了清理旧安装的残余.

You can delete the directory and your code will continue to function. It will just be slower. Note that it will be recreated again the next time you use a module unless the directory can't be written to. I occasionally delete it myself; though that is because I regularly rebuild Rakudo from git. I do that just to clean the remnants of older installs.

看似随意的长目录名的原因是因为一个模块的多个作者的多个版本可能会同时安装,以及 Unicode 模块名称的可能性.一直在谈论使用另一个系统来为文件/目录提供更合理的名称,但还没有发生.

The reason for the long seemingly arbitrary directory names are due to the fact that multiple versions from multiple authors of a module may be installed at once, and the possibility of Unicode module names. There has been talk of using another system which would give the files/directories more reasonable names, it just hasn't happened yet.

这篇关于Perl 6 工作文件夹中的 .precomp...repo-id 子文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆