- 05 Oct, 2011 2 commits
-
-
Rusty Russell authored
This gets us closer to 'ccanlint *' rather than relying on Makefiles to test all modules. Unfortunately, because of limited parallelism, it's currently slower than make -j.
-
Rusty Russell authored
Because we fork children to do compilations, and we use stdio, we need to flush stdout before the fork otherwise the child will flush afterwards. The compile tests interpret this output as a compiler warning. This shows up if you redirect ccanlint output to a file.
-
- 04 Oct, 2011 9 commits
-
-
Rusty Russell authored
Commit c4ca9f54 renamed run-83-openhook.c to api-83-openhook.c, but didn't update the suppression in _info. My system runs a patched valgrind, which doesn't have this problem.
-
Rusty Russell authored
Use correct printf string.
-
Rusty Russell authored
Help the compiler eliminate untestable code.
-
Rusty Russell authored
We fake up a dual IPv4/IPv6 response to localhost for testing, but it assumed localhost6 or ip6-localhost entries. Fall back to "::1" which should always work.
-
Rusty Russell authored
-
Rusty Russell authored
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3 on x86_64 uses a different stack offset for the second call to test_ptr_recursion(), meaning it sees new iterators. Put it inside a loop to reduce the chance of that happening.
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
Very minor fix, since this won't happen unless the test fails.
-
- 29 Sep, 2011 2 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
-
- 28 Sep, 2011 2 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
-
- 27 Sep, 2011 7 commits
-
-
Rusty Russell authored
Since that has a fixed hash table size and doesn't support delete, we can't do a thorough comparison, but we can insert and search.
-
Rusty Russell authored
Also general cleanups: (1) Don't assume that strings are folded by the compiler. (2) Implement likely_stats_reset(). (3) Return non-const string from likely_stats(), as caller must free it. (4) Don't use struct info indirection (that was from when we used callbacks?) (5) Close memory leak in run-debug.c
-
Rusty Russell authored
Unfortunately it's a bit of a pain to use for typed hashtables, but it works.
-
Rusty Russell authored
We change from htable_new()/htable_free() to htable_init/htable_clear. We also change HTABLE_DEFINE_TYPE() to be the full name, without automatically prepending htable_.
-
Rusty Russell authored
There's no real reason to start with 128 entries.
-
Rusty Russell authored
-
Rusty Russell authored
-
- 26 Sep, 2011 5 commits
-
-
Rusty Russell authored
This lets us compare hash table vs. strset vs. the example implementation of critbit trees. cbspeed 100 runs, min-max(avg): #01: Initial insert: 236-245(237) #02: Initial lookup (match): 180-186(180) #03: Initial lookup (miss): 171-185(172) #04: Initial lookup (random): 441-457(444) #05: Initial delete all: 127-132(128) #06: Initial re-inserting: 219-225(220) #07: Deleting first half: 101-104(102) #08: Adding (a different) half: 158-162(159) #09: Lookup after half-change (match): 202-207(203) #10: Lookup after half-change (miss): 217-222(218) #11: Churn 1: 297-302(299) #12: Churn 2: 297-305(300) #13: Churn 3: 301-308(303) #14: Post-Churn lookup (match): 189-195(190) #15: Post-Churn lookup (miss): 189-193(190) #16: Post-Churn lookup (random): 499-513(503) speed 100 runs, min-max(avg): #01: Initial insert: 211-218(212) #02: Initial lookup (match): 161-166(162) #03: Initial lookup (miss): 157-162(158) #04: Initial lookup (random): 452-460(454) #05: Initial delete all: 126-135(127) #06: Initial re-inserting: 193-201(194) #07: Deleting first half: 99-107(99) #08: Adding (a different) half: 143-190(144) #09: Lookup after half-change (match): 183-195(184) #10: Lookup after half-change (miss): 197-203(198) #11: Churn 1: 271-278(274) #12: Churn 2: 280-287(282) #13: Churn 3: 277-285(279) #14: Post-Churn lookup (match): 171-175(171) #15: Post-Churn lookup (miss): 174-178(175) #16: Post-Churn lookup (random): 525-552(528) stringspeed 100 runs, min-max(avg): #01: Initial insert: 300-343(308) #02: Initial lookup (match): 98-136(99) #03: Initial lookup (miss): 73-102(75) #04: Initial lookup (random): 230-282(233) #05: Initial delete all: 66-102(69) #06: Initial re-inserting: 62-99(64) #07: Deleting first half: 43-52(43) #08: Adding (a different) half: 101-156(106) #09: Lookup after half-change (match): 114-156(120) #10: Lookup after half-change (miss): 94-103(95) #11: Churn 1: 98-105(99) #12: Churn 2: 96-104(98) #13: Churn 3: 174-184(176) #14: Post-Churn lookup (match): 93-112(94) #15: Post-Churn lookup (miss): 77-107(79) #16: Post-Churn lookup (random): 229-265(232)
-
Rusty Russell authored
Not as fast as using htable, but simple and provides order and prefix ops.
-
Rusty Russell authored
Firstly, -Wwrite-strings makes string literals const, secondly, we mustn't define str_strstr etc in terms of themselves!
-
Rusty Russell authored
LGPL is overkill for trivial wrappers like this.
-
Rusty Russell authored
Note where previous analysis said the code was outside a function, and fix double new-line. Also, treat end of comment as end of statement.
-
- 24 Sep, 2011 1 commit
-
-
Rusty Russell authored
-
- 23 Sep, 2011 3 commits
-
-
Rusty Russell authored
This handles both pointer and integer types using ccan/tcon.
-
Rusty Russell authored
It's now a completely generic set implementation, and uses ccan/tcon to always be typesafe. It handles both integer and pointer types.
-
Rusty Russell authored
No real change for users.
-
- 22 Sep, 2011 2 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
Previously, it was always "", since we left the nul terminator at the start.
-
- 20 Sep, 2011 1 commit
-
-
Rusty Russell authored
This happens in SAMBA with the TDB_VERSION1, presumably due to a read-only traverse nested inside a normal traverse (since it doesn't occur without TDB_VERSION1). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 12 Sep, 2011 6 commits
-
-
Rusty Russell authored
This clarifies the code a little, but also provides a more explicit mechanism which can be used to debug error handling (by introducing tdb_err_t and making it a pointer type).
-
Rusty Russell authored
Measuring ccanlint -d ccan/tdb2 on my dual core hyperthread laptop gives: Before: 5:30 After: 3:31
-
Rusty Russell authored
Lazy cut & paste of tdb names causes failure when we run in parallel.
-
Rusty Russell authored
Measuring ccanlint -d ccan/tdb2 on my dual core hyperthread laptop gives: Before: 5:59 After: 5:30
-
Rusty Russell authored
Measuring ccanlint -d ccan/tdb2 on my dual core hyperthread laptop gives: Before: 6:47 After: 5:59
-
Rusty Russell authored
We use the lbalance module to figure out how many to run in parallel.
-