a-synchronous / a-synchronous/rubico.land
Use parent realm's copy of rubico for the code runners
未关闭
help wanted
performance
- 主要语言
- JavaScript
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
描述
At the moment, it's fetching every run and the examples are sometimes loading slowly. I've noticed on a fresh cache it was the first run that was slow and subsequent runs for different examples were quicker. Perhaps some caching is being done in the browser to that end. The relevant file should be `/CodeRunner.js`.
Note: Might have to perform a light refactor of the code runners to Realms first
贡献指南
调研方向
该 issue 提到了文档网站中代码运行器的性能改进,具体是从父 realm 加载 rubico,以避免重复获取。首先检查 `/CodeRunner.js`,了解当前的实现。查找 rubico 的加载方式,以及缓存可能发生的位置。目标是重构为使用共享副本,这可能需要了解 Realms 和模块结构。
由索引模型根据 Issue 内容生成。
评估
- 领域
- documentation
- Issue 类型
- 重构
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100