Messages in this thread | | | From | Andi Kleen <> | Subject | Re: schedule() "spaghetti" in 2.3.2 .. | Date | Mon, 17 May 1999 11:43:54 +0200 |
| |
In muc.lists.linux-kernel, you wrote: > >Hi guys, > >what kind of "spaghetti" is schedule() in 2.3.2 ?! :-) >And the comment at function head says that is a simple algo. >Probably there's a better way to code it without performance loosing >(if anyone won't do it, I'll try).
If you read it closely it isn't really spaghetti code, just a fancy way to move blocks out of line (in essence similar to the code snippets used in WEB and similar pre processors). All out of line blocks either jump back directly or return (with the only exception of repeat_schedule), not too much spaghetti if you know the conventions.
If gcc had a way to specify "move this block out of line" it could be writen in a more conventional way. ATM it hasn't. Any "fixes" for this style IMHO have to start with gcc.
-Andi
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |