ObjFW  Check-in [84a724dd4b]

Overview
Comment:Add a fast path for objc_classname_to_class().

This should improve the performance for the GCC ABI, as
objc_classname_to_class() is used for all sorts of class lookups, e.g.
objc_lookup_class().

As this performance improvement needs RAM, it is only used after 128
calls into objc_classname_to_class(), so that if the ObjFW ABI is used
and the user does not call into objc_getClass() or similar in a loop, no
memory is wasted.

Runtime internal usage of objc_classname_to_class() does not use the
fast path and does not count as a call into objc_classname_to_class().
The reason for this is that if the runtime calls
objc_classname_to_class(), it already has the lock and thus the
performance gain would be small, but it would waste memory.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 84a724dd4bdb6ac763d0930d6f7d3a37767f068eaa88730e8eb93ce565ad8f2b
User & Date: js on 2013-12-06 00:52:26
Other Links: manifest | tags
Context
2013-12-06
02:35
Add x86/Win32 assembly lookup implementation. check-in: b527914a91 user: js tags: trunk
00:52
Add a fast path for objc_classname_to_class(). check-in: 84a724dd4b user: js tags: trunk
2013-12-05
21:26
Check for iOS in configure instead of macros.h. check-in: 8602025532 user: js tags: trunk
Changes