berkus / kbus

Automatically exported from code.google.com/p/kbus
Other
1 stars 0 forks source link

Strings in the kernel module #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The one thing we *know* must be inefficient in the kernel module is the 
way it handles strings.

1. str[n]cmp is going to compare more than is needed, if we just want to 
know if two strings are equal or not
2. There are bound to be places where a simple hash of the string would be 
better (see (1))
3. And I really need to stop copying strings...

Original issue reported on code.google.com by t...@tibsnjoan.co.uk on 11 Mar 2010 at 9:47

GoogleCodeExporter commented 9 years ago
Extract that last item (not copying strings) as a separate issue, issue 34

Original comment by t...@tibsnjoan.co.uk on 7 May 2010 at 9:02