View unanswered posts | View active topics It is currently Sun Dec 28, 2025 12:00 pm



Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
 Weapon M deadlocks 
Author Message
Commander
User avatar

Joined: Mon Oct 29, 2001 3:00 am
Posts: 1096
Location: Tucson, AZ
Unread post Re: Weapon M deadlocks
I see your point, but we're talking about allocating and copying up to 30000 X 64 bytes every time any sector changes. And changes would include update timestamps, so it would reallocate at least once every time any sector is viewed. I'm thinking java.util.concurrent.atomic.AtomicReferenceArray might be useful...

_________________
Suddenly you're Busted!


Mon Jan 21, 2013 8:56 pm
Profile WWW
Chief Warrant Officer

Joined: Sat Nov 17, 2001 3:00 am
Posts: 175
Unread post Re: Weapon M deadlocks
Mongoose wrote:
I see your point, but we're talking about allocating and copying up to 30000 X 64 bytes every time any sector changes. And changes would include update timestamps, so it would reallocate at least once every time any sector is viewed. I'm thinking java.util.concurrent.atomic.AtomicReferenceArray might be useful...


Yes, good idea, that'd fit nicely for sectors. Outside a ztm script, I doubt you'd have very many writes, especially as the parser determines if the value changed first, but if you know the size ahead of time, that class would do nicely. The point is any of those optimization should be behind a service layer, so it shouldn't matter for the clients and you can optimize later as you find bottlenecks.


Mon Jan 21, 2013 9:26 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 17 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.