[英]Any way to speed up Picasa PhotoQuery?
I am trying to retrieve a couple sets of images from Picasa via C#
.我正在尝试通过
C#
从 Picasa 检索几组图像。 When I debug, I notice that the queries are taking up to 4 seconds each.当我调试时,我注意到每个查询最多需要 4 秒。 My code is as follows:
我的代码如下:
var thumbnailPhotoQuery = new PhotoQuery(PicasaQuery.CreatePicasaUri("SomeUser","SomeGallery"));
var largePhotoQuery = new PhotoQuery(PicasaQuery.CreatePicasaUri("SomeUser","AnotherGallery"));
var thumbnailFeed = picasaService.Query(thumbnailPhotoQuery);
var largeFeed = picasaService.Query(largePhotoQuery);
My galleries contain only about 20 images each.我的画廊每个只包含大约 20 张图片。 Is there anything I can do to make these execute faster?
我能做些什么来让这些执行得更快吗?
try specify what do you really want to download using "fields" extra parameter.尝试使用“字段”额外参数指定您真正想要下载的内容。
Example:例子:
thumbnailPhotoQuery.ExtraParameters = @"fields=entry(gphoto:id,title,gphoto:"
+ "timestamp,media:group(media:content,media:thumbnail[@width=144]))";
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.