Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #87934

Re: Newbie looking for elegant solution

From Paul Rubin <no.email@nospam.invalid>
Newsgroups comp.lang.python
Subject Re: Newbie looking for elegant solution
Date 2015-03-24 22:52 -0700
Organization A noiseless patient Spider
Message-ID <87wq2562tl.fsf@jester.gateway.sonic.net> (permalink)
References <bc226abc-2860-47d9-9d75-8e1ad1cae097@googlegroups.com> <874mp97mf9.fsf@jester.gateway.sonic.net> <mailman.129.1427257197.10327.python-list@python.org> <0e0fbfec-0265-490b-9300-d2c1f2bb4391@googlegroups.com>

Show all headers | View raw


kai.peters@gmail.com writes:
> 1 bit images of a size of 1024 x 1280 need to be processed this way,
> so 1310720 list elements. Also needs to be 2.7 only.

Where are these lists going to come from?  Files?  Process the file
differently, probably.  Use generators instead of lists, maybe.  Or
process one scan line at a time instead of the whole image.  Or
something.  Basically your plan and your question seem kind of naive.
If you can describe the ACTUAL application, you might be able to get
some better answers.  E.g. if it's image conversion, maybe there's an
existing tool for the formats you want.

How many of these images do you want to process?  If just a few, who
cares if it takes a little while?  If a lot, think about writing a C
program.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Newbie looking for elegant solution otaksoftspamtrap@gmail.com - 2015-03-24 20:13 -0700
  Re: Newbie looking for elegant solution Chris Angelico <rosuav@gmail.com> - 2015-03-25 14:28 +1100
    Re: Newbie looking for elegant solution otaksoftspamtrap@gmail.com - 2015-03-24 20:31 -0700
  Re: Newbie looking for elegant solution Paul Rubin <no.email@nospam.invalid> - 2015-03-24 21:04 -0700
    Re: Newbie looking for elegant solution kai.peters@gmail.com - 2015-03-24 21:19 -0700
    Re: Newbie looking for elegant solution Chris Angelico <rosuav@gmail.com> - 2015-03-25 15:19 +1100
      Re: Newbie looking for elegant solution kai.peters@gmail.com - 2015-03-24 21:46 -0700
        Re: Newbie looking for elegant solution Chris Angelico <rosuav@gmail.com> - 2015-03-25 16:05 +1100
        Re: Newbie looking for elegant solution Ben Finney <ben+python@benfinney.id.au> - 2015-03-25 16:28 +1100
        Re: Newbie looking for elegant solution Paul Rubin <no.email@nospam.invalid> - 2015-03-24 22:52 -0700
          Re: Newbie looking for elegant solution Rustom Mody <rustompmody@gmail.com> - 2015-03-24 23:32 -0700
  Re: Newbie looking for elegant solution Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-25 16:24 +1100
  Re: Newbie looking for elegant solution Dave Farrance <DaveFarrance@OMiTTHiSyahooANDTHiS.co.uk> - 2015-03-25 06:05 +0000
  Re: Newbie looking for elegant solution Travis Griggs <travisgriggs@gmail.com> - 2015-03-25 11:49 -0700
  Re: Newbie looking for elegant solution kai.peters@gmail.com - 2015-03-25 16:14 -0700
    Re: Newbie looking for elegant solution Paul Rubin <no.email@nospam.invalid> - 2015-03-25 16:30 -0700
    Re: Newbie looking for elegant solution Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2015-03-26 00:34 +0100
  Re: Newbie looking for elegant solution kai.peters@gmail.com - 2015-03-25 17:38 -0700
    Re: Newbie looking for elegant solution Paul Rubin <no.email@nospam.invalid> - 2015-03-25 18:09 -0700
      Re: Newbie looking for elegant solution kai.peters@gmail.com - 2015-03-25 18:29 -0700
        Re: Newbie looking for elegant solution Paul Rubin <no.email@nospam.invalid> - 2015-03-25 19:53 -0700

csiph-web