-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overleaf超时 #543
Comments
之前有同学反映 www.overleaf.com 换成 cn.overleaf.com 就行,有没有试过呢? |
感谢帮助,尝试了一下,还是出现了超时的情况。目前,我已经采用了Ruifeng Ma等同学在Overleaf上发布的新模板Beijing Institute of Technology (BIT) 2024 version thesis template(源于yang yating等维护的旧版本),该版本可以正常编译。 |
刚刚做了个十一万字的测试用例,还没有暴露问题。我之后加 另:Beijing Institute of Technology (BIT) 2024 version thesis template - Overleaf 与 https://github.com/RuifMaxx/LaTeX-template 并不完全相同,Overleaf上的 更新:加了十几个参考文献就会出现超时,但“从头开始重新编译”就不超了。 |
texpage https://www.texpage.com/pricing 提供了每次一分钟的免费编译时长。 |
减小包的依赖可能是唯一一个优化性能的手段。 |
刚刚我在 #536 补充了一下各家情况。
|
Details# 首先各自完整编译一遍,生成 *.aux 等
$ arara main-ctex.tex
(XeLaTeX) XeLaTeX engine ................................ SUCCESS
(Biber) The Biber reference management software ......... SUCCESS
(XeLaTeX) XeLaTeX engine ................................ SUCCESS
(XeLaTeX) XeLaTeX engine ................................ SUCCESS
(XDVIPDFMX) The XDVIPDFMX program ....................... SUCCESS
Total: 20.484 seconds
$ arara main-bithesis.tex
(XeLaTeX) XeLaTeX engine ................................ SUCCESS
(Biber) The Biber reference management software ......... SUCCESS
(XeLaTeX) XeLaTeX engine ................................ SUCCESS
(XeLaTeX) XeLaTeX engine ................................ SUCCESS
(XDVIPDFMX) The XDVIPDFMX program ....................... SUCCESS
Total: 26.893 seconds
# 然后比较 xelatex 编译时间
$ hyperfine 'xelatex -no-pdf main-ctex.tex' 'xelatex -no-pdf main-bithesis.tex'
Benchmark 1: xelatex -no-pdf main-ctex.tex
Time (mean ± σ): 5.357 s ± 0.614 s [User: 4.228 s, System: 1.055 s]
Range (min … max): 4.512 s … 6.415 s 10 runs
Benchmark 2: xelatex -no-pdf main-bithesis.tex
Time (mean ± σ): 7.626 s ± 0.287 s [User: 6.235 s, System: 1.333 s]
Range (min … max): 7.249 s … 8.246 s 10 runs
Summary
xelatex -no-pdf main-ctex.tex ran
1.42 ± 0.17 times faster than xelatex -no-pdf main-bithesis.tex 空文档(只保留
再加上 biblatex 等宏包,结果如下。
继续加上
import marimo
__generated_with = "0.7.11"
app = marimo.App(width="medium")
@app.cell
def __():
import numpy as np
return np,
@app.cell
def __():
from matplotlib.pyplot import subplots
fig, ax = subplots(layout='constrained')
return ax, fig, subplots
@app.cell
def __():
tests = ["empty", "packages", "packages + hooks", "full"]
return tests,
@app.cell
def __(np):
data = {
"ctex": np.array(
[
[0.8577, 54.1e-3],
[2.181, 0.2],
[1.995, 0.348],
[5.357, 0.614],
]
),
"bithesis": np.array(
[
[1.904, 0.289],
[3.659, 0.124],
[3.779, 0.185],
[7.626, 0.287],
]
),
}
return data,
@app.cell
def __(ax, data, fig, tests):
for k,v in data.items():
ax.errorbar(x=tests, y=v[:,0], yerr=v[:,1], label=k)
ax.legend()
ax.grid(visible=True)
ax.set_ylabel('时间 / s')
fig
return k, v
if __name__ == "__main__":
app.run() |
完整测试
一些特殊情况:
现象:
Detailsimport marimo
__generated_with = "0.7.11"
app = marimo.App(width="medium")
@app.cell
def __():
import numpy as np
return np,
@app.cell
def __():
from matplotlib.pyplot import subplots
fig, ax = subplots(layout='constrained')
return ax, fig, subplots
@app.cell
def __():
tests = ["empty", "packages", "packages + hooks", "full"]
return tests,
@app.cell
def __(np):
data = {
"ctex + biblatex": np.array(
[
[0.8577, 54.1e-3],
[2.181, 0.2],
[1.995, 0.348],
[5.357, 0.614],
]
),
"bithesis (biblatex)": np.array(
[
[1.904, 0.289],
[3.659, 0.124],
[3.779, 0.185],
[7.626, 0.287],
]
),
"ctex + natbib": np.array(
[
[886.6e-3, 74.7e-3],
[884.1e-3, 35.4e-3],
[931.0e-3, 57.0e-3],
[3.371, 0.276],
]
),
"BIT-thesis-grd (natbib)": np.array(
[
[2.234, 0.388],
[2.046, 0.330],
[2.274, 0.447],
[5.294, 0.418],
]
),
}
return data,
@app.cell
def __(ax, data, fig, tests):
for k, v in data.items():
ax.errorbar(
x=tests,
y=v[:, 0],
yerr=v[:, 1],
label=k,
linestyle="-." if "natbib" in k else "-",
capsize=5.,
)
ax.legend()
ax.grid(visible=True)
ax.set_ylabel("时间 / s")
ax.set_ylim([0, None])
fig
return k, v
if __name__ == "__main__":
app.run() biblatex - Why is biber so slow? - TeX - LaTeX Stack Exchange |
像这种 Lines 837 to 840 in 424e5b8
|
不过因为这个 list 非常小,性能提升肯定不明显。 |
发生了什么?
旧版本(yang yating等维护)在免费版本的Overleaf上可以正常完成编译。
而新版本(2024年推出,由Feng Kaiyu等维护)在Overleaf上内容较多(10万字,150+参考文献)时会造成超时,需要开通Overleaf会员才能完成编译,给学生带来了巨大困难。
你期望的结果
希望新版本可以适当改进以实现在内容较多时也可以在免费版本的Overleaf上完成编译
BIThesis 模板
graduate-thesis
The text was updated successfully, but these errors were encountered: