English 中文(简体)
AutoComplete 扩展速度非常缓慢
原标题:AutoCompleteExtender very slow

我在一份评论中提出了这个问题,但我认为我不要再问一下第一个问题。 我有自动竞争主管机构,其速度非常缓慢。 我的名单上填写了自动竞争主管机构名单的方法,每次都必须从APIC获得Get and Query XML。 问题是我的方法,在这种方法中,我无法接触到SessonState, Cookie,甚至在同一页的固定方法变量,因此我每次都看不到GET和Query的替代办法。 然而,这实际上并不值得。 还必须采取另一种方式(可能不使用AJAX工具包),以便迅速运作。

[System.Web.Script.Services.ScriptMethod()]
[System.Web.Services.WebMethod]
public static List<string> GetNames(string prefixText, int count)
 {
    //Code Here Takes long
 }
最佳回答

编辑《毕业会》,《毕业会报》和《最低工资标准》几乎没有任何意义。

它认为这是一个非常常见的问题——美国宇宙航空研究开发机构文本箱 扩展速度非常缓慢,因为它每小时查询数据——CodePlex,如果任何其他人都遇到这一问题,便可找到一个很麻烦的开放源解决办法。

问题回答

你们需要指出,在开始任何具体解决办法之前,你的业绩瓶颈在哪里。 这将有助于你们需要做些什么来进行变革/调整,以增加研究。

有两个方面需要检查(假设你有快速联系):

  1. Server side: Make sure your server quickly returns the call. Try returning a small array of strings (Don t perform any back end data retrieval). If performance increases significantly it means you have a problem in your service/data layer code and you need to optimize its performance.

  2. 客户方面: 客户方面最大的因素之一是:Completion Interval property。 视觉演播室设定的缺省价值为1,000ms。 我将其改为10个,并且变得更快。

In my case, the bottleneck was in the control configuration itself; my server side was already fast because I used a trie structure for fast backend data lookup and retrieval. I also returned a small array of records, turned client side caching on. The biggest factor was CompletionInterval though.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签