Re: [PATCH 4/4] input: dynamically allocate ABS information

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitry Torokhov
Date: Wednesday, July 14, 2010 - 1:18 am

On Wed, May 19, 2010 at 07:22:37PM +0200, Daniel Mack wrote:

This causes us to allocate every absinfo structure separately and use
64 additional pointers (256 bytes on 32 bit boxes and even more on 64 bit
boxes). If device uses enough axis we end up eating up most savings.

I think we should simply alloctate ABS_CNT worth of absinfo first time
we try to set up abs parameters and be done with it so we'll be saving
space for devices not reporting absolute events.

Another optionw woudl be to allow drivers specify size of absinfo array
but I am not sure if it worth it.

Thanks.

-- 
Dmitry
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 4/4] input: dynamically allocate ABS information, Daniel Mack, (Wed May 19, 10:22 am)
Re: [PATCH 4/4] input: dynamically allocate ABS information, Dmitry Torokhov, (Mon May 24, 9:15 am)
Re: [PATCH 4/4] input: dynamically allocate ABS information, Dmitry Torokhov, (Wed Jul 14, 1:18 am)
Re: [PATCH 4/4] input: dynamically allocate ABS information, Dmitry Torokhov, (Wed Jul 21, 1:30 am)
Re: [PATCH 4/4] input: dynamically allocate ABS information, Dmitry Torokhov, (Wed Jul 21, 1:31 am)
Re: [PATCH 4/4] input: dynamically allocate ABS information, Dmitry Torokhov, (Wed Jul 21, 1:32 am)
RE: [PATCH 4/4] input: dynamically allocate ABS information, ext-phil.2.carmody, (Wed Jul 21, 2:22 am)
RE: [PATCH 4/4] input: dynamically allocate ABS information, Artem Bityutskiy, (Wed Jul 21, 3:42 am)
Re: [PATCH 4/4] input: dynamically allocate ABS information, Dmitry Torokhov, (Tue Aug 10, 8:29 pm)
Re: [PATCH 4/4] input: dynamically allocate ABS information, Dmitry Torokhov, (Thu Aug 12, 8:35 pm)