Demo entry 6623864

py

   

Submitted by anonymous on Jun 11, 2017 at 04:06
Language: Python. Code size: 332 Bytes.

class ConditionTablePool(object):

	def __init__(self):
		self.maxSize = 1024 # 最大值

		self.initSize = 256 # 开服的时候申请好
		self.deltaSize = 64 # 不要一次申请?
		self.freeThreshold = 16 # free最低阈值 
		
		self.resizeChunkSize = 8  # 每次申请一个chunk
		self.resizeInterval = 0.5 # 申请间隔 
		self.resizeTimerid = None
		self.resizing = False

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).