Skip to content
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

速度问题 #12

Closed
Lasonneil opened this issue Nov 2, 2019 · 3 comments
Closed

速度问题 #12

Lasonneil opened this issue Nov 2, 2019 · 3 comments

Comments

@Lasonneil
Copy link

谢谢码主,功能完全没问题,就是速度太慢了,能不能想想办法改进一下,如果速度也很快的话就完美了😁

@xinebf
Copy link
Owner

xinebf commented Nov 2, 2019

基本上所有的时间都花在了网络请求上面了

PS D:\Documents> python .\googletranslate.py zh-CN """Her resulting work is more than a mere translation: over several chapters, it translates and clarifies Newton in a brilliantly succinct fashion and grows from a plain language explanation of Newtons work that any French-reader could grasp, to a detailed, mathematical treatise for experts. Writing sporadically over four years, du Chatelet added in detailed proofs of ideas Newton mentioned offhand and integrates the latest works of her contemporaries, which built on and supported Newtons ideas."""
Time 1: 7.229999999999737e-05
Time 2: 1.7764085
^_^: Translate en To zh-CN
Her resulting work is more than a mere translation: over several chapters, it translates and clarifies Newton in a brilliantly succinct fashion and grows from a plain language explanation of Newtons work that any French-reader could grasp, to a detailed, mathematical treatise for experts. Writing sporadically over four years, du Chatelet added in detailed proofs of ideas Newton mentioned offhand and integrates the latest works of her contemporaries, which built on and supported Newtons ideas.
她的著作不仅仅只是翻译:在几章中,它以精妙的方式翻译和阐明了牛顿,并从任何法国读者都能掌握的牛顿著作的通俗易懂的语言解释,发展为专家的详尽的数学论文。 du Chatelet零星地写作了四年 ,在其中补充了牛顿提到的详细思想证明,并整合了其同时代人的最新作品,这些作品基于并支持牛顿的思想。
Time 3: 1.7770926

以英文翻译为中文消耗时间为例:
Time 1 为网络请求的上一步, Time 2 为网络请求的下一步 , 1 -> 2 为网络请求所需时间 (只有一条网络请求), Time 3 为运行结束的时间, 2 -> 3 处理数据占用的时间很少的.

@Lasonneil
Copy link
Author

好吧,那网络请求的速度是不是需要设置一下,比如走个代理,挂个tizi什么的会不会快一些?

@xinebf
Copy link
Owner

xinebf commented Nov 2, 2019

这个你可以在这一行自己设置看看

@xinebf xinebf closed this as completed Nov 4, 2019
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

No branches or pull requests

2 participants