Re: Slow Django dev server reload

2016-07-11 Thread ludovic coues
Any chance the big time difference come from the difference between SSD and mechanical drive ? 2016-07-11 7:00 GMT+02:00 Krishna Bharadwaj : > Fred, > > That's very good to know. At least it tells me that the number of imports > could be one of the main reasons for the

Re: Slow Django dev server reload

2016-07-10 Thread Krishna Bharadwaj
Fred, That's very good to know. At least it tells me that the number of imports could be one of the main reasons for the slow down. And I apologise for the delay in responding. I am not certain why the number is so high in my case. I will take a closer look at it and share what I find out

Re: Slow Django dev server reload

2016-07-05 Thread Fred Stluka
Krishna, Only a third of your count -- 551 % tcsh   % python -v manage.py runserver >&! ~/1.1   % grep -E "^import" ~/1.1 | wc -l 551 So, you didn't see any noticeable pauses as the -v output was streaming to the terminal window?  Sounds

Re: Slow Django dev server reload

2016-07-05 Thread Krishna Bharadwaj
Vijay, about 75 as mentioned in the other post answer. On Monday, 4 July 2016 19:16:03 UTC+5:30, Vijay Khemlani wrote: > > How many models are there in your project? > > On Mon, Jul 4, 2016 at 3:46 AM, Hildeberto Mendonça > wrote: > >> Isn't it related to the amount of

Re: Slow Django dev server reload

2016-07-05 Thread Krishna Bharadwaj
Hi Fred, Thanks for providing your project as a reference and also the python verbose tip. I just started my dev server with the -v option to see how many import statements are fired. grep '^import ' returned about 1500 lines in the output (about 75 models with about 40k lines of code). I

Re: Slow Django dev server reload

2016-07-04 Thread Vijay Khemlani
Why... are you answering questions directed to Krishna? You are not the one with the slow loading server. On Mon, Jul 4, 2016 at 4:19 PM, Fred Stluka wrote: > Krishna, > > I'm using: > - Mac OSX 10.11.5 (El Capitan) > - 2.3GHz Intel Core i7 > - 16 GB 1333 MHz DDR3 > - 512GB

Re: Slow Django dev server reload

2016-07-04 Thread Fred Stluka
Krishna, I'm using: - Mac OSX 10.11.5 (El Capitan) - 2.3GHz Intel Core i7 - 16 GB 1333 MHz DDR3 - 512GB SSD - Python 2.7.3 - Django 1.4.2 - MySQL 5.1.33 And it takes less than a second from when I type:     % python manage.py runserver

Re: Slow Django dev server reload

2016-07-04 Thread Fred Stluka
Hildeberto, No, the number of migrations does affect how long it takes to run automated tests, but should not affect how long it takes the dev server to start. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/

Re: Slow Django dev server reload

2016-07-04 Thread Vijay Khemlani
How many models are there in your project? On Mon, Jul 4, 2016 at 3:46 AM, Hildeberto Mendonça wrote: > Isn't it related to the amount of migration files in your project? > > On Mon, Jul 4, 2016 at 9:13 AM, Babatunde Akinyanmi > wrote: > >> This is a

Re: Slow Django dev server reload

2016-07-04 Thread Hildeberto Mendonça
Isn't it related to the amount of migration files in your project? On Mon, Jul 4, 2016 at 9:13 AM, Babatunde Akinyanmi wrote: > This is a punch in the dark. It takes about 3 - 5 seconds on my my > windows machine when I run the dev server using pycharm's inbuilt terminal

Re: Slow Django dev server reload

2016-07-04 Thread Babatunde Akinyanmi
This is a punch in the dark. It takes about 3 - 5 seconds on my my windows machine when I run the dev server using pycharm's inbuilt terminal and my code is way below 5k lines On Jul 4, 2016 7:20 AM, "Krishna Bharadwaj" wrote: > Hi Fred, > > It takes about 3.5 - 5

Re: Slow Django dev server reload

2016-07-04 Thread Krishna Bharadwaj
Hi Fred, It takes about 3.5 - 5 seconds on my machine (Mac OSX - 2.6 GHz Intel Core i5, 8 GB 1600 MHz DDR3 and SSDs). I was curious to know if I was doing something wrong. Any pointers regarding this will be very helpful. On Sunday, 3 July 2016 20:47:50 UTC+5:30, Fred Stluka wrote: > >

Re: Slow Django dev server reload

2016-07-03 Thread Fred Stluka
Krishna, How long is "a long time"?  I have a project of ~200K lines of python/django code.  The dev server reloads in a second or so. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc --