Commit a54ad72
xfrm: policy: remove remaining use of inexact list
No consumers anymore, remove it. After this, insertion of policies
no longer require list walk of all inexact policies but only those
that are reachable via the candidate sets.
This gives almost linear insertion speeds provided the inserted
policies are for non-overlapping networks.
Before:
Inserted 1000 policies in 70 ms
Inserted 10000 policies in 1155 ms
Inserted 100000 policies in 216848 ms
After:
Inserted 1000 policies in 56 ms
Inserted 10000 policies in 478 ms
Inserted 100000 policies in 4580 ms
Insertion of 1m entries takes about ~40s after this change
on my test vm.
Cc: Noel Kuntze <[email protected]>
Cc: Tobias Brunner <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>1 parent 563d5ca commit a54ad72
2 files changed
+0
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
558 | | - | |
559 | 558 | | |
560 | 559 | | |
561 | 560 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | | - | |
201 | 199 | | |
202 | 200 | | |
203 | 201 | | |
| |||
410 | 408 | | |
411 | 409 | | |
412 | 410 | | |
413 | | - | |
414 | 411 | | |
415 | 412 | | |
416 | 413 | | |
| |||
1228 | 1225 | | |
1229 | 1226 | | |
1230 | 1227 | | |
1231 | | - | |
1232 | | - | |
1233 | | - | |
1234 | 1228 | | |
1235 | 1229 | | |
1236 | 1230 | | |
| |||
1346 | 1340 | | |
1347 | 1341 | | |
1348 | 1342 | | |
1349 | | - | |
1350 | 1343 | | |
1351 | 1344 | | |
1352 | 1345 | | |
| |||
1515 | 1508 | | |
1516 | 1509 | | |
1517 | 1510 | | |
1518 | | - | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
1522 | | - | |
1523 | | - | |
1524 | | - | |
1525 | | - | |
1526 | | - | |
1527 | | - | |
1528 | | - | |
1529 | | - | |
1530 | | - | |
1531 | | - | |
1532 | | - | |
1533 | | - | |
1534 | | - | |
1535 | | - | |
1536 | | - | |
1537 | | - | |
1538 | | - | |
1539 | | - | |
1540 | | - | |
1541 | | - | |
1542 | | - | |
1543 | | - | |
1544 | | - | |
1545 | | - | |
1546 | | - | |
1547 | | - | |
1548 | 1511 | | |
1549 | 1512 | | |
1550 | 1513 | | |
| |||
2346 | 2309 | | |
2347 | 2310 | | |
2348 | 2311 | | |
2349 | | - | |
2350 | 2312 | | |
2351 | 2313 | | |
2352 | 2314 | | |
| |||
0 commit comments