Skip to content

优化百年各流月获取速度#31

Open
LemonDrug wants to merge 4 commits into6tail:masterfrom
LemonDrug:master
Open

优化百年各流月获取速度#31
LemonDrug wants to merge 4 commits into6tail:masterfrom
LemonDrug:master

Conversation

@LemonDrug
Copy link
Copy Markdown
Contributor

  • DaYun.py — 预计算干支和流年基准偏移量,缓存 getLiuNian/getXiaoYun
  • LiuNian.py — 使用 DaYun 预计算的偏移量,缓存 getLiuYue
  • LiuYue.pyinit 中预计算干支
  • XiaoYun.pyinit 中预计算干支

含流月的完整计算从约 6s 降到 0.168s,提速约 35 倍。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant