Shared Memory with Python

Discussion in 'App Development' started by clearinghouse, Dec 13, 2011.

  1. As far as reprogramming, if you have a decent amount coded in something, I'm pretty sure there is away of combining langauges, I thought it was called inlining, but that's not the word apparently.
     
    #11     Dec 14, 2011
  2. Good post. To answer, I have a dirty piece of code that I like to tweak a lot. Sometimes the tweaks aren't obvious to me and the script goes through several iterations, edit, run, edit, run, edit, run. But since the runs happen on a large dataset, the "quick and dirty code" ends up loading stuff over and over. I figured the part that does the loading should be left in memory and when a program loads, it just finds the loaded stuff, runs on it, finishes up, lets me edit/re-run.

    But otherwise, the suggestions are in this thread are good. (Very good thread!) I've never evaluated the in-memory database option. That sounds like an interesting alternative also.
     
    #12     Dec 15, 2011
  3. SteveH

    SteveH

    You might want to consider moving your Python code over to IronPython so you can open up anything that's available in .Net for your future solutions.
     
    #13     Dec 17, 2011
  4. mcdull

    mcdull

    I have a similar problem of parsing huge csv/txt files using python.

    My solution is creating a "pickled" file for the parsed csv/txt in the first run of parsing of data. For the second run, if the python program finds the pickled file, I load the pickled file instead.

    It's not perfect but it speeds up my loading of csv files to 50-100 times.
     
    #14     Dec 18, 2011
  5. Admitting being biased against anything Microsoft is involved with, my question is really why?
    To OPEN myself to CLOSED, PROPRIETARY environment that's mostly sub par?
     
    #15     Dec 18, 2011
  6. This is the solution I went with. Thank you very much; it has made a big difference for me in my ability to process large datasets.
     
    #16     Jan 15, 2012