From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 6CACABC57 for ; Thu, 16 Dec 2010 12:31:21 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtgAAAeHCU1KfVK0kGdsb2JhbACWB44mCBUBAQIJCQwHEQQgpwWJcIIYZoROLohXAQEDBYVFBIp7gxZo X-IronPort-AV: E=Sophos;i="4.59,354,1288566000"; d="scan'208";a="92502701" Received: from mail-wy0-f180.google.com ([74.125.82.180]) by mail1-smtp-roc.national.inria.fr with ESMTP; 16 Dec 2010 12:31:21 +0100 Received: by wyb28 with SMTP id 28so2583909wyb.39 for ; Thu, 16 Dec 2010 03:31:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=SLhSz4DiRlNr3VrDnSXApumu5hFOR4u2w44GVfV3PIs=; b=om3PsB3mqPQFMljcDQRx1K3ejUM+P9pwkyiSMAtlT3ZHaXBQclijVMJt7BkjTq5XB6 aQkvscAxQ+RQ0LyfJFm2k74Sic9A6ILsbf5m2x3UncMC/z904LFmHlEC6bMxI8CRcNNZ t+YzA8SqWr16dBNl78JRI2wE9ExIsJP1+NWHw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=vwsk/OyV1pljNKq7aHCZhOjr6UPCXDnFG7y4EsQlvFNNcyBFW7YZx8lPWqtzVbvnAA 3RPY3DikIlfKN9qG26K/SPmwNpwP1qKCLPLCOz8L5HD14ihcLr9eJM2DPpYjS9UtNilK OzbVbnRxwfw2W/YSEKBJfARuDH1c2i6+BtvGs= Received: by 10.227.132.206 with SMTP id c14mr2599907wbt.124.1292499080936; Thu, 16 Dec 2010 03:31:20 -0800 (PST) Received: from [192.168.0.192] (32.Red-79-151-44.dynamicIP.rima-tde.net [79.151.44.32]) by mx.google.com with ESMTPS id 11sm350944wbj.19.2010.12.16.03.31.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 16 Dec 2010 03:31:20 -0800 (PST) From: Joel Reymont Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: appending data to a mmap-ed file Date: Thu, 16 Dec 2010 11:31:16 +0000 Message-Id: <8D1E9D5B-188C-4AF3-980B-EF229BA98FB4@gmail.com> To: caml-list@yquem.inria.fr Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) X-Spam: no; 0.00; appending:01 appending:01 ocaml:01 ocaml:01 ints:01 appended:02 data:02 data:02 prototype:07 efficient:07 trading:90 i'm:09 i'm:09 memory:09 memory:09 I'm constantly appending to a file of stock quotes (ints, longs, = doubles, etc.). I have this file mapped into memory with mmap.=20 What's the most efficient way to make newly appended data available as = part of the memory mapping? Obligatory OCaml content: I'm trying to prototype a trading system in = OCaml. =20 Thanks, Joel --- http://twitter.com/wagerlabs