Re: [Mesa-dev] [PATCH] mesa: reduce memory used for short display lists

2013-12-04 Thread Regis Perdreau
unsubscribe 2013/12/4 Ian Romanick : > On 11/24/2013 08:00 AM, Brian Paul wrote: >> From: Brian Paul >> >> Display lists allocate memory in chunks of 256 tokens (1KB) at a time. >> If an app creates many short display lists or uses glXUseXFont() this >> can waste quite a bit of memory. >> >> This

Re: [Mesa-dev] [PATCH] mesa: reduce memory used for short display lists

2013-12-04 Thread Ian Romanick
On 11/24/2013 08:00 AM, Brian Paul wrote: > From: Brian Paul > > Display lists allocate memory in chunks of 256 tokens (1KB) at a time. > If an app creates many short display lists or uses glXUseXFont() this > can waste quite a bit of memory. > > This patch uses realloc() to trim short lists and

Re: [Mesa-dev] [PATCH] mesa: reduce memory used for short display lists

2013-12-04 Thread Brian Paul
On Sun, Nov 24, 2013 at 9:00 AM, Brian Paul wrote: > From: Brian Paul > > Display lists allocate memory in chunks of 256 tokens (1KB) at a time. > If an app creates many short display lists or uses glXUseXFont() this > can waste quite a bit of memory. > > This patch uses realloc() to trim short

[Mesa-dev] [PATCH] mesa: reduce memory used for short display lists

2013-11-24 Thread Brian Paul
From: Brian Paul Display lists allocate memory in chunks of 256 tokens (1KB) at a time. If an app creates many short display lists or uses glXUseXFont() this can waste quite a bit of memory. This patch uses realloc() to trim short lists and reduce the memory used. Also, null/zero-out some list