Instantiating pickled instances transparently 1.0 Python script

SPONSORED LINKS

    Specification

  • Version: 1.0
  • File size: 0 KB
  • File name: index_txt
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Python
  • Price:Other Free / Open So
  • Company: George Sakkis (View more)

Instantiating pickled instances transparently 1.0 script description:




Publisher review:
Instantiating pickled instances transparently script load a pickled instance and returns it. This script addresses the following two needs:
- Object construction for some class is expensive.
- Objects of this class need to be instantiated across multiple runs of the program.
For example, object instantiaton may involve reading one or more big files, connecting to a database or a network socket with considerable expected delay, etc.

The autopickle decorator deals with this problem by wrapping the __init__ of the class. The first time a specific instance is created, it is also pickled to a file. In all subsequent attempts to create the same instance, the pickled instance is loaded and returned instead. If unpickling the file is faster than creating the instance normally, all but the first instantiations are faster than the normal one.

The instance determines the path of the file to be pickled to by calling its getPickleFilename() method. This takes the same arguments given in __init__ and it has the responsibility to specify a valid and distinct path for the instance.
Instantiating pickled instances transparently 1.0 is a Python script for Python Modules scripts design by George Sakkis. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Instantiating pickled instances transparently script load a pickled instance and returns it.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5