Nope, I am testing Django memory usage for different kind of objects,
and create 100000 instances to minimize per-object measurement error,
memory usage pattern is exactly the same for 100 or 1000 objects.

On Jul 31, 9:30 am, hcarvalhoalves <hcarvalhoal...@gmail.com> wrote:
> """
> class U(models.Model):
>     name = models.TextField(max_length = 255, blank = False)
>     name2 = models.TextField(max_length = 255, blank = False)
>     name3 = models.TextField(max_length = 255, blank = False)
>     ...
> data = [U() for x in xrange(100000)]
> """
>
> What is this actually trying to test? If Python allocation works?
>
> Yes, you'll start getting all sort of weird memory usage patterns from
> the Python VM if you hold references to 100000 bogus objects without
> garbage collecting in-between.
>
> On 30 jul, 21:04, OverKrik <overk...@gmail.com> wrote:
>
>
>
> > Thx Alex, should I post minimal testapp just to make sure? I really
> > tried triggering this with my own classes, but had no luck even with
> > pretty complex ones.
>
> > On Jul 31, 3:50 am, Alex Gaynor <alex.gay...@gmail.com> wrote:
>
> > > This isn't something django can help, it has to do with the overallocation
> > > patterns for python dicts.  You would see this for any pytho obj with the
> > > right number of fields.
>
> > > Alex
>
> > > On Jul 30, 2010 7:17 PM, "Jacob Kaplan-Moss" <ja...@jacobian.org> wrote:
>
> > > On Fri, Jul 30, 2010 at 5:59 PM, OverKrik <overk...@gmail.com> wrote:
> > > > Hi, I've been profiling Djan...
>
> > > Hm, in a quick test I can't seem to reproduce this, and I can't see
> > > how it'd be happening. Can you post more details -- your model, how
> > > you're measuring the memory usage, which database you're using, etc?
>
> > > Thanks!
>
> > > Jacob
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Django developers" g...

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to