Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.128 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.75; '*S*': 0.01; 'python': 0.11; 'stored': 0.12; 'integers,': 0.16; 'objects.': 0.16; 'storing': 0.16; 'subject:based': 0.16; 'header:User-Agent:1': 0.23; 'header:In- Reply-To:1': 0.27; 'pickle': 0.31; 'lists': 0.32; 'probably': 0.32; 'received:209.85.212': 0.32; 'received:209.85': 0.35; 'objects': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'method': 0.36; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'simple': 0.61; 'information': 0.63; 'worth': 0.66; 'believe': 0.68; 'received:192.168.0.3': 0.84; 'subject:looking': 0.91 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=/MqEtgAfqLTDFNLXIuRt5UtAcJYWK1zeiux6fHeGwb4=; b=MEdD817RqBLD9E5O+NgJGeoTaFvxECFdydREQsiHGc/afad+EeytVHReL8iio7yNKc csgCEQ+olFvEhTC4w0J6f3PAbw5EWxeCgmPIPPp6c9lDiCU3ygq32TA/Q9KNtyVxhGAz aLNt8uw2seqFFnb5QC4nIUlKqYsEG3iwCtsv8rt+eTHauLEtMKml+T6aFiTG6T+9eXeY i0laEEgnRZ6kpY8Rawa9++NBeRrfZE42UmonEGzamLuEw5un3jLT0gLvooJcbl8xqPnB kBWsx1oKyJT3lmxutCJF4CBHeZ9WEgIA3B0aOpSLIBbRRnqAXdTd0ZUZirN4qNM2xJAa 0rfg== X-Gm-Message-State: ALoCoQlTj5dscHnr3nHu6EBLY6JHWiaOWnFndHZ3XnLZ6tyfn6cb3i7Uftf4kAC8b2AWV76zVru7 X-Received: by 10.194.62.132 with SMTP id y4mr29338442wjr.91.1428940438075; Mon, 13 Apr 2015 08:53:58 -0700 (PDT) Date: Mon, 13 Apr 2015 16:53:59 +0100 From: Robin Becker User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Pickle based workflow - looking for advice References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1428940445 news.xs4all.nl 2933 [2001:888:2000:d::a6]:53250 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:88926 for what it's worth I believe that marshal is a faster method for storing simple python objects. So if your information can be stored using simple python things eg strings, floats, integers, lists and dicts then storage using marshal is faster than pickle/cpickle. If you want to persist the objects for years then the pickle protocol is probably better as it is not python version dependant. -- Robin Becker