简体   繁体   English

有什么方法可以加快 Picasa PhotoQuery?

[英]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.

相关问题 有什么方法可以加快Entity Framework中的CreateIfNotExists? - Any way to speed up CreateIfNotExists in Entity Framework? 有什么方法可以加快c#中的for循环吗? - Is there any way to speed up the for loop in c#? 有什么方法可以加快DataGridView Remove的速度吗? - Is there any way to speed up a DataGridView Remove? 有什么方法可以加速这个文件解析算法? - Any way to speed up this file parsing algorithm? 有什么办法可以加快这个excel导入的速度吗? - Any way to speed up this excel import? 有什么方法可以加快datatable.LoadDataRow()吗? - Is there any way to speed up datatable.LoadDataRow()? 有什么方法可以加快数组初始化? - Is there any way to speed up array initialization? 如何模仿Picasa渲染质量降低的图像以加快绘图速度 - How to mimic Picasa's rendering of reduced quality image to speed up drawing 有没有比FileStream.WriteByte()方法更快的替代方法,或者有什么方法可以在C#中加快FileStream.WriteByte()的速度? - Is there any faster alternative to FileStream.WriteByte() method or any way to speed up the FileStream.WriteByte() in C#? 有没有一种方法可以加快GetAccessControl和GetOwner - Is there a way to speed up GetAccessControl and GetOwner
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM