Performance Profiling

未关闭
#136 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞

调研方向

首先重现所列 Cslib 模块的本地构建时间,然后检查 Cslib.Languages.LambdaCalculus.LocallyNameless 及其针对类型上下文的 grind 规则。将较慢的模块与文件更长的情况进行比较,并确定是否能够找出具体原因或可执行的改进;issue 没有定义完成目标。

由索引模型根据 Issue 内容生成。

描述

Maybe this should be a running meta-issue. I've noticed that some of the lambda calculus modules are slow, so I decided to look at build times. Here are the 15 slowest (of ~50) from me building locally, which happens to coincide with a cutoff of 5 seconds:

Cslib.Languages.LambdaCalculus.LocallyNameless.Fsub.Subtype (11s)
Cslib.Logics.LinearLogic.CLL.Basic (10s)
Cslib.Foundations.Data.FinFun (10s)
Cslib.Languages.LambdaCalculus.LocallyNameless.Stlc.Basic (9.1s)
Cslib.Languages.LambdaCalculus.LocallyNameless.Fsub.WellFormed (8.8s)
Cslib.Languages.LambdaCalculus.LocallyNameless.Fsub.Typing (8.5s)
Cslib.Logics.LinearLogic.CLL.PhaseSemantics.Basic (8.4s)
Cslib.Languages.LambdaCalculus.LocallyNameless.Fsub.Opening (8.3s)
Cslib.Foundations.Data.OmegaSequence.Init (8.0s)
Cslib.Foundations.Lint.Basic (7.2s)
Cslib.Foundations.Semantics.LTS.Bisimulation (6.8s)
Cslib.Foundations.Data.OmegaSequence.Flatten (6.0s)
Cslib.Languages.LambdaCalculus.LocallyNameless.Fsub.Safety (5.7s)
Cslib.Languages.CCS.BehaviouralTheory (5.7s)
Cslib.Languages.LambdaCalculus.LocallyNameless.Untyped.FullBetaConfluence (5.2s)

I have a guess at some issues in Cslib.Languages.LambdaCalculus.LocallyNameless related to grind rules for typing contexts. Some others may just be longer files, there is not necessarily something wrong in all cases.

主要语言
Lean
星标
847
派生
234
平均合并
2 天 21 小时
30 天内合并 PR
49

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

leanprover/cslib 的其他 Issue

查看 leanprover/cslib 的全部 Issue

相似的 Issue

更多 Build System Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。