23 Aug
2004
23 Aug
'04
11:15 a.m.
Tim Peters wrote:
These are the only lines that matter <0.5 wink>:
c=pool[-1] del pool[-1]
in Db.open(). If an appropriate pool is available, a connection is reused from the end by exactly those two lines. When a connection is returned (_closeConnection()), it's added to the end of the appropriate pool:
pool.append(connection)
So all pools are stack-like, until they're exhausted.
*wry grinz*
Dieter's fondness for them notwithstanding, the primary thing that's been keeping versions alive is that they *so* complicate so much of the code that it's dangerous to take them out):
You peered into Shared.ZRDB recently? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk