Re: [PATCH] Optimize relay_alloc_page_array() slightly by using vzalloc rather than vmalloc and memset

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Sunday, October 31, 2010 - 5:46 pm

On Sun, 31 Oct 2010 14:39:14 -0400 Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> wrote:


Such a compiler would be pretty darn useless - that's a quite common
thing to do.

It's also a very *useful* thing to do.  In a long function it's easy to
lose track of what variable has what value where, and it's easy to add
bugs by modifying a variable which you didn't realise gets used later
on.  If the definition has a "const" in front of it then great, that
settled everything.


aw, c'mon, read the code.  The patch is good and improves that function
so much it ain't funny.

It's a non-runtime-tested, obviously-correct cleanup.  Yes, it would be
better if it was runtime tested.  But we merge patches on this basis
all the time and it works out OK.

If, amazingly, there is some bug in it then someone will hit that bug in
-next or -rc testing and we'll fix it.  Shrug.  If you're that worried then
*you* could runtime test it!  

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

Messages in current thread:
Re: [PATCH] Optimize relay_alloc_page_array() slightly by ..., Mathieu Desnoyers, (Sat Oct 30, 2:47 pm)
Re: [PATCH] Optimize relay_alloc_page_array() slightly by ..., Mathieu Desnoyers, (Sun Oct 31, 11:39 am)
Re: [PATCH] Optimize relay_alloc_page_array() slightly by ..., Andrew Morton, (Sun Oct 31, 5:46 pm)
Re: [PATCH] Optimize relay_alloc_page_array() slightly by ..., Mathieu Desnoyers, (Mon Nov 1, 4:27 am)
Re: [PATCH] Optimize relay_alloc_page_array() slightly by ..., Mathieu Desnoyers, (Mon Nov 1, 6:08 am)
Re: [PATCH] Optimize relay_alloc_page_array() slightly by ..., Mathieu Desnoyers, (Mon Nov 1, 6:38 am)
Re: [PATCH] Optimize relay_alloc_page_array() slightly by ..., Mathieu Desnoyers, (Mon Nov 1, 9:00 am)
Re: [PATCH] Optimize relay_alloc_page_array() slightly by ..., Mathieu Desnoyers, (Mon Nov 1, 11:26 am)