server-skynet-source-3rd-je.../test
Yinan Zhang c9d56cddf2 Optimize meld in qr module
The goal of `qr_meld()` is to change the following four fields
`(a->prev, a->prev->next, b->prev, b->prev->next)` from the values
`(a->prev, a, b->prev, b)` to `(b->prev, b, a->prev, a)`.

This commit changes

```
a->prev->next = b;
b->prev->next = a;
temp = a->prev;
a->prev = b->prev;
b->prev = temp;
```

to

```
temp = a->prev;
a->prev = b->prev;
b->prev = temp;
a->prev->next = a;
b->prev->next = b;
```

The benefit is that we can use `b->prev->next` for `temp`, and so
there's no need to pass in `a_type`.

The restriction is that `b` cannot be a `qr_next()` macro, so users
of `qr_meld()` must pay attention.  (Before this change, neither `a`
nor `b` could be a `qr_next()` macro.)
2020-04-06 09:50:27 -07:00
..
include/test Fix: assertion could abort on past failures 2020-03-18 20:48:26 -07:00
integration Change assert_* to expect_* in tests 2020-02-19 16:03:16 -08:00
src Fix: assertion could abort on past failures 2020-03-18 20:48:26 -07:00
stress Add hook microbenchmark. 2018-08-09 13:16:54 -07:00
unit Optimize meld in qr module 2020-04-06 09:50:27 -07:00
test.sh.in Output MALLOC_CONF and debug cmd when test failure happens. 2017-04-21 22:52:02 -07:00