dbus/test
Havoc Pennington 1b1dfafc34 2004-11-13 Havoc Pennington <hp@redhat.com>
* test/glib/test-profile.c: fix this thing up a bit

	* dbus/dbus-message.c (dbus_message_new_empty_header): increase
	preallocation sizes by a fair bit; not sure if this will be an
	overall performance win or not, but it does reduce reallocs.

	* dbus/dbus-string.c (set_length, reallocate_for_length): ignore
	the test hack that forced constant realloc if asserts are
	disabled, so we can profile sanely. Sprinkle in some
	_DBUS_UNLIKELY() which are probably pointless, but before I
	noticed the real performance problem I put them in.
	(_dbus_string_validate_utf8): micro-optimize this thing a little
	bit, though callgrind says it didn't help; then special-case
	ascii, which did help a lot; then be sure we detect nul bytes as
	invalid, which is a bugfix.
	(align_length_then_lengthen): add some more _DBUS_UNLIKELY
	superstition; use memset to nul the padding instead of a manual
	loop.
	(_dbus_string_get_length): inline this as a
	macro; it showed up in the profile because it's used for loop
	tests and so forth
2004-11-13 07:07:47 +00:00
..
data 2004-10-18 Colin Walters <walters@verbum.org> 2004-10-18 04:04:12 +00:00
glib 2004-11-13 Havoc Pennington <hp@redhat.com> 2004-11-13 07:07:47 +00:00
.cvsignore 2003-04-10 Alexander Larsson <alexl@redhat.com> 2003-04-10 12:09:00 +00:00
break-loader.c 2004-08-09 Havoc Pennington <hp@redhat.com> 2004-08-10 03:07:01 +00:00
decode-gcov.c 2003-10-14 Havoc Pennington <hp@redhat.com> 2003-10-15 21:09:40 +00:00
Makefile.am 2004-09-20 Jon Trowbridge <trow@ximian.com> 2004-09-20 11:24:38 +00:00
spawn-test.c 2003-04-04 Havoc Pennington <hp@redhat.com> 2003-04-05 00:37:17 +00:00
test-exit.c 2003-04-04 Havoc Pennington <hp@redhat.com> 2003-04-05 00:37:17 +00:00
test-segfault.c 2003-06-15 Joe Shaw <joe@assbarn.com> 2003-06-15 10:45:07 +00:00
test-service.c 2004-06-07 Havoc Pennington <hp@redhat.com> 2004-06-07 19:27:51 +00:00
test-sleep-forever.c 2003-04-04 Havoc Pennington <hp@redhat.com> 2003-04-05 00:37:17 +00:00
test-utils.c 2003-04-18 Havoc Pennington <hp@pobox.com> 2003-04-18 04:18:57 +00:00
test-utils.h 2003-04-07 Havoc Pennington <hp@redhat.com> 2003-04-07 23:28:16 +00:00