ID:161185
 
Suppose you want to keep track of several items that may spoil over time if not maintained in a certain place. What would be the least processor intensive way of keeping track of all these items and their expiration? Thousands of items.

I suppose you could keep track of the time that item was set in a spoilable condition and then update the item only when something interacts with it, but that seems flakey for a few reasons.
you know, based on these weird requests and complaints/bugs youve been posting lately, I really have no clue what youre trying to do on byond. But youd most likely be better off doing it in C++ or VB or some other language since it sounds like some giant DB management system
Obs wrote:
Suppose you want to keep track of several items that may spoil over time if not maintained in a certain place. What would be the least processor intensive way of keeping track of all these items and their expiration? Thousands of items.

I suppose you could keep track of the time that item was set in a spoilable condition and then update the item only when something interacts with it, but that seems flakey for a few reasons.

That's actually probably your best bet. You might update more regularly for items in inventory, but as far as items that are out of sight, yeah, I'd expire them when the time comes but not before. Otherwise it does kinda become a mess.

Lummox JR
In response to Lummox JR
I will ponder.