Pete Littlebird
Registered User
Join date: 30 Sep 2009
Posts: 44
|
10-26-2009 05:43
In the case of a greeter that keeps a list of whom it's greeted to avoid repetitiousness, it will at some point run out of memory, so it becomes necessary to remove the oldest names when adding new ones.
Is there any way of predetermining if just one more waffer-thin name will break the script? Or should one run an experiment to try to determine the maximum number of 36-character names it can store and hard-code that into the script?
|
IBME Swindlehurst
Registered User
Join date: 5 Mar 2007
Posts: 139
|
10-26-2009 06:03
I'd go with the experiment as there isn't any other reliable way. It will be quite a few entries if you are using MONO 
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
10-26-2009 06:12
You can also prolong life by storing something less than the full name or key. I typically save the final 8 digits of an av's key, figuring that the probability of getting duplicate hits is low enough that it's not worth a major worry. Unless you need the full name itself for another reason, I think you can avoid repetition by saving something a lot shorter.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....  Look for my work in XStreetSL at 
|
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
|
10-26-2009 07:40
Maybe you could adapt this script:  ..
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!! - Go here: http://jira.secondlife.com/browse/SVC-1224- If you see "if you were logged in.." on the left, click it and log in - Click the "Vote for it" link on the left
|
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
|
10-27-2009 02:40
I went simple with mine. I keep the list of names only, and every 12 hours my greeter posts the list to a php script which then compiles and injects the visit stats into my traffic database and the greeter resets itself.
|