Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ShHTA-0008K4-Fk for bitcoin-development@lists.sourceforge.net; Wed, 20 Jun 2012 09:45:00 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.212.175 as permitted sender) client-ip=209.85.212.175; envelope-from=mh.in.england@gmail.com; helo=mail-wi0-f175.google.com; Received: from mail-wi0-f175.google.com ([209.85.212.175]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1ShHT4-0008Qp-Md for bitcoin-development@lists.sourceforge.net; Wed, 20 Jun 2012 09:45:00 +0000 Received: by wibhn6 with SMTP id hn6so3262107wib.10 for ; Wed, 20 Jun 2012 02:44:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.86.5 with SMTP id l5mr10619062wiz.6.1340185488479; Wed, 20 Jun 2012 02:44:48 -0700 (PDT) Sender: mh.in.england@gmail.com Received: by 10.216.254.232 with HTTP; Wed, 20 Jun 2012 02:44:48 -0700 (PDT) In-Reply-To: <4FE0D167.7030506@justmoon.de> References: <4FE0D167.7030506@justmoon.de> Date: Wed, 20 Jun 2012 11:44:48 +0200 X-Google-Sender-Auth: IAYPLdYdlPkCndpJSfZO18oAd0g Message-ID: From: Mike Hearn To: Stefan Thomas Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -1.4 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (mh.in.england[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 AWL AWL: From: address is in the auto white-list X-Headers-End: 1ShHT4-0008Qp-Md Cc: bitcoin-development@lists.sourceforge.net Subject: Re: [Bitcoin-development] LevelDB benchmarking X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2012 09:45:00 -0000 Thanks, I didn't realize BitcoinJS used LevelDB already. Just one minor thing - LevelDB was definitely designed for servers, as it comes from BigTable. It happens to be used in Chrome today, and that was the motivation for open sourcing it, but that's not where the design came from. If anything it's going to get less and less optimal for desktops and laptops over time because they're moving towards SSDs, where the minimal-seeks design of LevelDB doesn't necessarily help. Servers are moving too of course but I anticipate most Bitcoin nodes on servers to be HDD based for the forseeable future. Also, Satoshis code does use ordered access/iteration in at least one place, where it looks up the "owner transactions" of a tx. I'm not totally sure what that code is used for, but it's there. Whether it's actually the best way to solve the problem is another question :-)