Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50187 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27687 invoked from network); 14 Nov 2010 11:25:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Nov 2010 11:25:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=pacha.shevaev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pacha.shevaev@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pacha.shevaev@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-iw0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:53707] helo=mail-iw0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E9/25-58544-137CFDC4 for ; Sun, 14 Nov 2010 06:25:37 -0500 Received: by iwn6 with SMTP id 6so5995265iwn.29 for ; Sun, 14 Nov 2010 03:25:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=GkV1Y1Pe4o13IAUUPleLIhEuFSNu3wgCk48Mizi6UFk=; b=VdAZhcXQ2wYNk/6rGiMaiVsC+/EEHzhbgxbvmxdrcZr4jj8jipARLHgy2yite0SzkT y5pdxr736QtJ7YgwbEqZWX41wkMJI2DWxsrh6lhr7bn3aijAWsqYlQjpfsFYtSGmaYGY dRX+9Ry3tUlxG3cBtGrOx2sv3Z/WR1Btv29WU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=VDRK9BgDsBiorgOOx/z+ELfiDDvVR5/ECeFWCEwVeDZwGBwFkEQwvN3POkVksTz4gY MH/gn69ekQvyKfR16G1by6qU1VQ7XoIt2STw8FR/3TL/Y756tIa8uYkbXxznIsznq99b ICh5eF0iSX5mPm1bRw+GB8jGJHarc1cZJ/1cc= MIME-Version: 1.0 Received: by 10.42.176.201 with SMTP id bf9mr242231icb.301.1289733934343; Sun, 14 Nov 2010 03:25:34 -0800 (PST) Received: by 10.231.17.141 with HTTP; Sun, 14 Nov 2010 03:25:34 -0800 (PST) Date: Sun, 14 Nov 2010 14:25:34 +0300 Message-ID: To: internals internals Content-Type: text/plain; charset=ISO-8859-1 Subject: The fastest way to save/restore PHP application state From: pacha.shevaev@gmail.com (Pavel Shevaev) Hi folks, Could you please recommend the fastest way to save/restore a state of a PHP application? Looks like the igbinary extension is a possible way to go. Are there any faster, possibly even more low level ways? For example, in C/C++ it's possible to save/restore POD structs as binary data very efficiently. Is there anything similar possible with PHP? I'm developing a game application where PHP is running on a server and a client sends small game world changes every several seconds. That's why It's critical for me to restore and save the state of the application as fast as possible. Running PHP as a daemon is not an option for me. Thanks in advance! -- Best regards, Pavel