|author||Lennart Poettering <email@example.com>||2009-08-21 21:27:44 +0200|
|committer||Lennart Poettering <firstname.lastname@example.org>||2009-08-21 21:27:44 +0200|
object: speed up type verification by not relying on strcmp()
Instead of using string contents for type identification use the address of a constant string array. This should speed up type verifications a little sind we only need to compare one machine word instead of a full string. Also, this saves a few strings. To make clear that types must be compared via address and not string contents 'type_name' is now called 'type_id'. This also simplifies the macros for declaring and defining public and private subclasses.
Diffstat (limited to 'todo')
0 files changed, 0 insertions, 0 deletions