Return-Path: Received: from fg-out-1718.google.com ([72.14.220.158] verified) by mx.softsearch.ru (CommuniGate Pro SMTP 5.1.14) with ESMTP id 63996375 for talk@openhack.ru; Fri, 22 Feb 2008 00:27:04 +0300 Received: by fg-out-1718.google.com with SMTP id 22so142890fge.24 for ; Thu, 21 Feb 2008 13:27:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from:to:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=K+IlCResnqgDtrUBlZE987i7l5nL3VaspVptrOKLchI=; b=xmP3GaGgZA42MatBaOi5JIjYDi59BBZOAGN14/Bdbr9f9EtZRAODl+ttar1prEDOt7SCFMbm3l4kUhyMyAQjC+4mNGFi8d/BtqnCaQZQCUyLMYxJ7bm7KLR03AtvKjNWRgZz2h+TMxfhrtzuJvwtn4aJxXSe2PI798tOdnOBmio= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=KU95gZjRr4fhPAnQ0VZls/zj3cjZhB1hqjQ/wr8BSthPwB7vc8PW7IZEbORRk6MynP180/JeV2kbskXv+giHAzLBprMT6kdgkzlKL6Nof9rztZdJ6pnQb/+deDdkgG0KXfvLKu1itfB3DEVs8LvakH+dPtSmUyiLP0G1ERGPhzQ= Received: by 10.86.78.4 with SMTP id a4mr9996953fgb.3.1203629226335; Thu, 21 Feb 2008 13:27:06 -0800 (PST) Return-Path: Received: from moonlight.home ( [80.246.71.156]) by mx.google.com with ESMTPS id l12sm541306fgb.8.2008.02.21.13.27.04 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Feb 2008 13:27:05 -0800 (PST) Received: from moonlight.home (localhost.localdomain [127.0.0.1]) by moonlight.home (Postfix) with ESMTP id 49E713A7D5; Fri, 22 Feb 2008 00:27:03 +0300 (MSK) Received: (from tomash@localhost) by moonlight.home (8.13.1/8.13.1/Submit) id m1LLR388020602; Fri, 22 Feb 2008 00:27:03 +0300 Date: Fri, 22 Feb 2008 00:27:03 +0300 From: Tomash Brechko To: talk@openhack.ru Subject: Re: Reconnections and mod_perl Message-ID: <20080221212703.GB4821@moonlight.home> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i On Thu, Feb 21, 2008 at 22:15:09 +0100, Kostas Chatzikokolakis wrote: > So, based on this, if I use cache from many different parts of my > application, instead of creating many C::M::F objects with different > namespaces, it's better to use just one and add the needed prefixes > myself, to reuse the same connections and avoid opening too many. Isn't it? Using explicit namespace => 'prefix' is different from adding 'prefix' by hand: namespace string is not hashed along with the key, thus keys are distributed among servers differently. But if all parts of your application agree to use the same approach, then go ahead, hashing (C::M::F uses CRC32) is fast enough, so additional 16-32 bytes won't make a noticeable slowdown. -- Tomash Brechko