Skip to content
This repository has been archived by the owner on Sep 29, 2019. It is now read-only.

don't download the file which exist #7

Merged
merged 3 commits into from
May 23, 2016
Merged

don't download the file which exist #7

merged 3 commits into from
May 23, 2016

Conversation

trim21
Copy link
Contributor

@trim21 trim21 commented May 23, 2016

site.py还停留在上一次PR的状态

@XIAZY XIAZY merged commit 7eef795 into XIAZY:master May 23, 2016
@XIAZY
Copy link
Owner

XIAZY commented May 23, 2016

good, 我等会去改一改 GUI 版的代码

@trim21
Copy link
Contributor Author

trim21 commented May 23, 2016

IO堪忧,每个文件都要判断是否存在
本来预想的效果是已经存在的文件很快的时间里直接全部略过,
现在一个一个判断虽然比原来省去了下载图片的时间,但是感觉速度提升不是很明显.

@XIAZY
Copy link
Owner

XIAZY commented May 23, 2016

IO ���������������� Python �������������� IO ��������������������������
��������������������������������

@trim21
Copy link
Contributor Author

trim21 commented May 23, 2016

qq 20160523130755
.........

@XIAZY
Copy link
Owner

XIAZY commented May 23, 2016

IO 很慢吗……我感觉 Python 的瓶颈不应该是 IO 啊,爬虫瓶颈怎么想都是网络
判断文件是否存在怎么想也不要几秒
😄
OS X 邮件默认 GBK 编码……

@trim21
Copy link
Contributor Author

trim21 commented May 23, 2016

主要是没有已经下载过的文件飞快掠过的那种畅快感(

@XIAZY
Copy link
Owner

XIAZY commented May 23, 2016

Python 就这样,要不然只能用 C 重写……
我这几天在想如何增加 exhentai 支持
😊

@trim21
Copy link
Contributor Author

trim21 commented May 23, 2016

发现我写的逻辑有点问题,在文件已经存在的情况下还是会去网页上请求图片地址,稍微改了一下,怪不得慢...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants