Results 1 to 4 of 4

Thread: Write/Read sequence of Ice structss to/from file

  1. #1
    rbock is offline Registered User
    Name: Roland Bock
    Organization: Metafeed
    Project: Session Cache
    Join Date
    Feb 2010
    Posts
    4

    Write/Read sequence of Ice structss to/from file

    Hi,

    I have a sequence of ice objects in python and want to dump them to a file. Later I want to read in the sequence again.

    What is the best way to do that? cPickle is terribly slow.

    Since Ice has to perform similar operations when sending sequences over sockets, I assume that there have to be appropriate methods?

    Thanks and regards,

    Roland

  2. #2
    mwilson is offline Registered User
    Name: Mark Wilson
    Organization: University of Rochester
    Project: Omega EP laser
    Join Date
    Jul 2005
    Location
    Rochester, NY
    Posts
    100
    Look at Dynamic Ice.
    Mark E. Wilson
    Lead Programmer/Analyst
    Omega EP Project
    Laboratory for Laser Energetics (www.lle.rochester.edu)
    University of Rochester
    Rochester, NY 14623

  3. #3
    mes's Avatar
    mes
    mes is online now ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    Look at Dynamic Ice.
    Dynamic Ice would be a solution in some language mappings, but unfortunately not yet in Python. I'm afraid I can't offer a better alternative to cPickle at the moment.

    Regards,
    Mark

  4. #4
    rbock is offline Registered User
    Name: Roland Bock
    Organization: Metafeed
    Project: Session Cache
    Join Date
    Feb 2010
    Posts
    4
    Quote Originally Posted by mes View Post
    Dynamic Ice would be a solution in some language mappings, but unfortunately not yet in Python. I'm afraid I can't offer a better alternative to cPickle at the moment.

    Regards,
    Mark
    Thanks for looking into it. After experimenting a bit with dumping the Ice structs as python code, I think I am going to use C++ and the streaming interface for this.

    BTW: It might be useful for Ice Objects to inherit from a common abstract base class (similar to PEP 3141 -- A Type Hierarchy for Numbers).

    Cheers,

    Roland

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. proxy object read write access
    By Rubix in forum Help Center
    Replies: 2
    Last Post: 04-26-2011, 12:48 PM
  2. How to read the sourcecode of ICE
    By yky in forum Help Center
    Replies: 3
    Last Post: 04-02-2008, 12:16 AM
  3. Cannot read config file using Java ClassLoader
    By Djaunl in forum Help Center
    Replies: 4
    Last Post: 05-18-2007, 03:45 PM
  4. Replies: 2
    Last Post: 08-01-2006, 05:58 PM
  5. Replies: 4
    Last Post: 06-22-2005, 09:33 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •