Loading large amount of data into memory - most efficient way to do this?

后端 未结 4 1727
悲&欢浪女
悲&欢浪女 2020-12-30 01:08

I have a web-based documentation searching/viewing system that I\'m developing for a client. Part of this system is a search system that allows the client to search for a t

4条回答
  •  情话喂你
    2020-12-30 01:09

    Fetch all the data as a string, and use split(). This is the fastest way to build an array in Javascript.

    There's an excellent article a very similar problem, from the people who built the flickr search: http://code.flickr.com/blog/2009/03/18/building-fast-client-side-searches/

提交回复
热议问题