API请求中的性能 [英] Performance in API request

查看:96
本文介绍了API请求中的性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿!



我想知道你是否有人可以帮助我:

我有一个酒店搜索引擎(连接到Expedia的API)

加载过程如下:

- 用户进入页面(只是标题可见),加载文档后我制作了第一个AJAX请求获取搜索请求的前60个结果的函数

- 在此函数中我反序列化JSON响应,将结果加载到字符串中然后我形成一个完整的html字符串,它将被传回视图。



这个程序非常慢:(

有人可以给我一些建议如何加快整个过程?



提前感谢!!!

干杯

Arthur

Hey!

I was wondering if someone of you can help me:
I have a hotel search engine (connected to the API of Expedia)
The loading procedure is like this:
- user comes to the page (just the header is visible) and after document is loaded I make the first AJAX request to a function which gets the first 60 results of the search request
- in this function I deserialize the JSON response, load the results in strings and then I form a complete html string which will get passed back to the view.

This procedure is really slow :(
Can someone give me an advice how to do to speed up the whole thing?

thanks in advance!!!
Cheers
Arthur

推荐答案

这篇关于API请求中的性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆