Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #24613
| From | subhabangalore@gmail.com |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Slow output |
| Date | 2012-06-28 07:11 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <1abe014f-df23-4a82-bb49-c15ad4ae0396@googlegroups.com> (permalink) |
| References | <53d49cb1-a68a-49c4-b925-b8a910ac415a@googlegroups.com> |
On Wednesday, June 27, 2012 11:03:44 PM UTC+5:30, (unknown) wrote: > Dear Group, > I am Sri Subhabrata Banerjee writing from India. I am running a small program which exploits around 12 1 to 2 KB .txt files. I am using MS Windows XP Service Pack 3 and Python 2.6 where IDLE is GUI. The text is plain ASCII text. The RAM of the machine is around 2 GB. To run the program the machine is becoming dead slow and it is executing only after several minutes. I am shocked as I have run hugely loaded Statistical Learning stuff only on 516MB RAM on Python using Windows XP only. And that too on a laptop. > I am not getting. I discussed the issue with my system administrator and he increased the RAM to 8GB result improved by 30% but not satisfactory speed. May any one suggest me what may be the likely issue? > > Thanking You in Advance, > Subhabrata Banerjee. Dear Group, Thank you for your kind reply and teaching me some nice coding options. I would port your suggestions and see if it improves. Unfortuantely I can not share the code as it has slight propietary issue, but I was debugging the code on myself, I was seeing that if I write the outputs in the file then it is giving fast results, but if I print it to the console -which is a list of big size, but well even I print all the files of 1KB each I have 12 files only, why a print command would make it so slow? I have searched processed made big n-grams big calculations across even UTF-8 encoding data sets Python gave result in fragment of seconds. Regards, Subhabrata Banerjee.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Slow output subhabangalore@gmail.com - 2012-06-27 10:33 -0700
Re: Slow output MRAB <python@mrabarnett.plus.com> - 2012-06-27 19:06 +0100
Re: Slow output Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-06-27 20:27 +0000
Re: Slow output Jean-Michel Pichavant <jeanmichel@sequans.com> - 2012-06-27 20:59 +0200
Re: Slow output alex23 <wuwei23@gmail.com> - 2012-06-27 19:05 -0700
Re: Slow output subhabangalore@gmail.com - 2012-06-28 07:11 -0700
Re: Slow output Roel Schroeven <roel@roelschroeven.net> - 2012-06-28 21:14 +0200
csiph-web