Search found 3 matches
- Wed Aug 19, 2009 11:55 am
- Forum: PHP - Code
- Topic: initialize server side object in memory once
- Replies: 7
- Views: 368
Re: initialize server side object in memory once
Thank you all for the advice! It is very helpful. I want to make sure I did not miss the obvious. Will revisit the issue when the list grows bigger.
- Tue Aug 18, 2009 7:11 pm
- Forum: PHP - Code
- Topic: initialize server side object in memory once
- Replies: 7
- Views: 368
Re: initialize server side object in memory once
Thank you Christopher. That is what I suspect too. The problem I encountered is that even I do require_once to initialize the array, the include file is called every time the auto complete handler is called, thus cause a performance hit. I have the site to show this problem: http://www.questbid.com/...
- Tue Aug 18, 2009 5:25 pm
- Forum: PHP - Code
- Topic: initialize server side object in memory once
- Replies: 7
- Views: 368
initialize server side object in memory once
Hello, I come from Java/C++ background and I am relatively new to PHP. I need to initialize a long list of strings for autocomplete feature. This list is static constant array that will be the same for all users and all sessiosn. I like to initialize it once and keep it in the memory. This is analog...