pack in structure or not?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

Reading the kernel code I see code like this
int foo(int i1, void *p1, int i2, int i3, many parameters);

and also like this

struct foo_request req = {
.i1 = i1_expression,
.i2 = i2_expression,
...
};

The second variant is much more understandable, but what variant is faster?
Or speed is not so important as clearness?

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux