ChinaUniOnline icon indicating copy to clipboard operation
ChinaUniOnline copied to clipboard

有关速度问题

Open LnYo-Cly opened this issue 3 years ago • 13 comments

请求帮助

使用的是原版,但是答题速度特别慢

目标

xxxxxx

LnYo-Cly avatar Mar 28 '21 13:03 LnYo-Cly

我昨晚也跑了一下,感觉速度还可以接受,倒也不至于很慢

---原始邮件--- 发件人: @.> 发送时间: 2021年3月28日(周日) 晚上9:37 收件人: @.>; 抄送: @.***>; 主题: [Upsetin/ChinaUniOnline] 有关速度问题 (#79)

请求帮助

使用的是原版,但是答题速度特别慢

目标

xxxxxx

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Upsetin avatar Mar 28 '21 14:03 Upsetin

我昨晚也跑了一下,感觉速度还可以接受,倒也不至于很慢 ---原始邮件--- 发件人: @.> 发送时间: 2021年3月28日(周日) 晚上9:37 收件人: @.>; 抄送: @.***>; 主题: [Upsetin/ChinaUniOnline] 有关速度问题 (#79) 请求帮助 使用的是原版,但是答题速度特别慢 目标 xxxxxx — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

但是我搜索一道题就要花费大概5,6秒时间

LnYo-Cly avatar Mar 28 '21 14:03 LnYo-Cly

我昨晚也跑了一下,感觉速度还可以接受,倒也不至于很慢 ---原始邮件--- 发件人: @.> 发送时间: 2021年3月28日(周日) 晚上9:37 收件人: @.>; 抄送: @.***>; 主题: [Upsetin/ChinaUniOnline] 有关速度问题 (#79) 请求帮助 使用的是原版,但是答题速度特别慢 目标 xxxxxx — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

刚刚又试了一下,20道题545秒

LnYo-Cly avatar Mar 28 '21 14:03 LnYo-Cly

我可能1分钟左右?

---原始邮件--- 发件人: @.> 发送时间: 2021年3月28日(周日) 晚上10:26 收件人: @.>; 抄送: @.@.>; 主题: Re: [Upsetin/ChinaUniOnline] 有关速度问题 (#79)

我昨晚也跑了一下,感觉速度还可以接受,倒也不至于很慢 … ---原始邮件--- 发件人: @.> 发送时间: 2021年3月28日(周日) 晚上9:37 收件人: @.>; 抄送: @.***>; 主题: [Upsetin/ChinaUniOnline] 有关速度问题 (#79) 请求帮助 使用的是原版,但是答题速度特别慢 目标 xxxxxx — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

刚刚又试了一下,20道题545秒

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Upsetin avatar Mar 28 '21 14:03 Upsetin

我搜索是秒搜索几乎不浪费时间的诶

---原始邮件--- 发件人: @.> 发送时间: 2021年3月28日(周日) 晚上10:20 收件人: @.>; 抄送: @.@.>; 主题: Re: [Upsetin/ChinaUniOnline] 有关速度问题 (#79)

我昨晚也跑了一下,感觉速度还可以接受,倒也不至于很慢 … ---原始邮件--- 发件人: @.> 发送时间: 2021年3月28日(周日) 晚上9:37 收件人: @.>; 抄送: @.***>; 主题: [Upsetin/ChinaUniOnline] 有关速度问题 (#79) 请求帮助 使用的是原版,但是答题速度特别慢 目标 xxxxxx — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

但是我搜索一道题就要花费大概5,6秒时间

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Upsetin avatar Mar 28 '21 14:03 Upsetin

我搜索是秒搜索几乎不浪费时间的诶 ---原始邮件--- 发件人: @.> 发送时间: 2021年3月28日(周日) 晚上10:20 收件人: @.>; 抄送: @.@.>; 主题: Re: [Upsetin/ChinaUniOnline] 有关速度问题 (#79) 我昨晚也跑了一下,感觉速度还可以接受,倒也不至于很慢 … ---原始邮件--- 发件人: @.> 发送时间: 2021年3月28日(周日) 晚上9:37 收件人: @.>; 抄送: @.***>; 主题: [Upsetin/ChinaUniOnline] 有关速度问题 (#79) 请求帮助 使用的是原版,但是答题速度特别慢 目标 xxxxxx — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. 但是我搜索一道题就要花费大概5,6秒时间 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

我第一次用的时候也是秒搜索,,但是现在搜索特别慢 不知道为什么

LnYo-Cly avatar Mar 28 '21 14:03 LnYo-Cly

我搜索是秒搜索几乎不浪费时间的诶 ---原始邮件--- 发件人: @.> 发送时间: 2021年3月28日(周日) 晚上10:20 收件人: @.>; 抄送: @.@.>; 主题: Re: [Upsetin/ChinaUniOnline] 有关速度问题 (#79) 我昨晚也跑了一下,感觉速度还可以接受,倒也不至于很慢 … ---原始邮件--- 发件人: @.> 发送时间: 2021年3月28日(周日) 晚上9:37 收件人: @.>; 抄送: @.***>; 主题: [Upsetin/ChinaUniOnline] 有关速度问题 (#79) 请求帮助 使用的是原版,但是答题速度特别慢 目标 xxxxxx — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. 但是我搜索一道题就要花费大概5,6秒时间 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

有解决方法吗

LnYo-Cly avatar Mar 28 '21 14:03 LnYo-Cly

重新下载一下项目试试吧

---原始邮件--- 发件人: @.> 发送时间: 2021年3月28日(周日) 晚上10:34 收件人: @.>; 抄送: @.@.>; 主题: Re: [Upsetin/ChinaUniOnline] 有关速度问题 (#79)

我搜索是秒搜索几乎不浪费时间的诶 … ---原始邮件--- 发件人: @.> 发送时间: 2021年3月28日(周日) 晚上10:20 收件人: @.>; 抄送: @.@.>; 主题: Re: [Upsetin/ChinaUniOnline] 有关速度问题 (#79) 我昨晚也跑了一下,感觉速度还可以接受,倒也不至于很慢 … ---原始邮件--- 发件人: @.> 发送时间: 2021年3月28日(周日) 晚上9:37 收件人: @.>; 抄送: @.***>; 主题: [Upsetin/ChinaUniOnline] 有关速度问题 (#79) 请求帮助 使用的是原版,但是答题速度特别慢 目标 xxxxxx — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. 但是我搜索一道题就要花费大概5,6秒时间 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

我第一次用的时候也是秒搜索,,但是现在搜索特别慢 不知道为什么

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Upsetin avatar Mar 28 '21 15:03 Upsetin

是不是题库太大,查询缓慢

arenekosreal avatar Mar 28 '21 15:03 arenekosreal

https://blog.csdn.net/leviopku/article/details/106651069 可以用这个方法测试一下是哪一步太慢了

arenekosreal avatar Mar 28 '21 23:03 arenekosreal

https://blog.csdn.net/leviopku/article/details/106651069 可以用这个方法测试一下是哪一步太慢了

是GetOption和Confire这两个函数耗时,在提交答案耗时太严重了,需要3-5秒。搜索题目需要1-3秒

LnYo-Cly avatar Mar 29 '21 09:03 LnYo-Cly

https://blog.csdn.net/leviopku/article/details/106651069 可以用这个方法测试一下是哪一步太慢了

还有提交验证码那一步

LnYo-Cly avatar Mar 29 '21 09:03 LnYo-Cly

GetOption、Confire和提交验证码这三个公共的部分都是需要和服务器网络通信,最有可能耗费大量时间的个人猜想应该就是在网络通信那里,可以先试试换个网络环境?还不行的话麻烦测量一下每个函数里面requests请求需要的时间,并与整个函数执行的时间比较一下,看一下占比是不是太大了

arenekosreal avatar Mar 29 '21 09:03 arenekosreal