Commit deb921f
This change gives a significant speedup, as the METH_FASTCALL calling
convention is now used. The following bytes and bytearray methods are adapted:
- count()
- find()
- index()
- rfind()
- rindex()
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
1 parent 49fc141 commit deb921f
File tree
8 files changed
+703
-164
lines changed- Include/internal
- Misc/NEWS.d/next/Core and Builtins
- Objects
- clinic
- stringlib
8 files changed
+703
-164
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1121 | 1121 | | |
1122 | 1122 | | |
1123 | 1123 | | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1124 | 1140 | | |
1125 | | - | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
1126 | 1144 | | |
1127 | | - | |
| 1145 | + | |
| 1146 | + | |
1128 | 1147 | | |
1129 | 1148 | | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
1130 | 1155 | | |
1131 | | - | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
1132 | 1159 | | |
1133 | | - | |
| 1160 | + | |
| 1161 | + | |
1134 | 1162 | | |
1135 | 1163 | | |
1136 | 1164 | | |
| |||
1162 | 1190 | | |
1163 | 1191 | | |
1164 | 1192 | | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
1165 | 1201 | | |
1166 | | - | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
1167 | 1205 | | |
1168 | | - | |
| 1206 | + | |
| 1207 | + | |
1169 | 1208 | | |
1170 | 1209 | | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
1171 | 1218 | | |
1172 | | - | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
1173 | 1222 | | |
1174 | | - | |
| 1223 | + | |
| 1224 | + | |
1175 | 1225 | | |
1176 | 1226 | | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
1177 | 1235 | | |
1178 | | - | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
1179 | 1239 | | |
1180 | | - | |
| 1240 | + | |
| 1241 | + | |
1181 | 1242 | | |
1182 | 1243 | | |
1183 | 1244 | | |
| |||
2236 | 2297 | | |
2237 | 2298 | | |
2238 | 2299 | | |
2239 | | - | |
2240 | | - | |
| 2300 | + | |
2241 | 2301 | | |
2242 | 2302 | | |
2243 | 2303 | | |
2244 | 2304 | | |
2245 | | - | |
2246 | | - | |
| 2305 | + | |
2247 | 2306 | | |
2248 | 2307 | | |
2249 | | - | |
| 2308 | + | |
2250 | 2309 | | |
2251 | 2310 | | |
2252 | 2311 | | |
| |||
2276 | 2335 | | |
2277 | 2336 | | |
2278 | 2337 | | |
2279 | | - | |
2280 | | - | |
| 2338 | + | |
| 2339 | + | |
2281 | 2340 | | |
2282 | 2341 | | |
2283 | 2342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
457 | | - | |
458 | | - | |
| 456 | + | |
459 | 457 | | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
| 458 | + | |
469 | 459 | | |
470 | 460 | | |
471 | 461 | | |
472 | | - | |
| 462 | + | |
473 | 463 | | |
474 | 464 | | |
475 | 465 | | |
476 | | - | |
| 466 | + | |
477 | 467 | | |
478 | 468 | | |
479 | 469 | | |
480 | | - | |
| 470 | + | |
481 | 471 | | |
482 | 472 | | |
483 | 473 | | |
| |||
508 | 498 | | |
509 | 499 | | |
510 | 500 | | |
511 | | - | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
512 | 504 | | |
513 | | - | |
514 | 505 | | |
515 | 506 | | |
516 | 507 | | |
517 | 508 | | |
518 | | - | |
519 | 509 | | |
520 | 510 | | |
521 | | - | |
522 | | - | |
| 511 | + | |
523 | 512 | | |
| 513 | + | |
524 | 514 | | |
525 | 515 | | |
526 | 516 | | |
| |||
566 | 556 | | |
567 | 557 | | |
568 | 558 | | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | 559 | | |
579 | | - | |
| 560 | + | |
| 561 | + | |
580 | 562 | | |
581 | | - | |
| 563 | + | |
582 | 564 | | |
583 | 565 | | |
584 | 566 | | |
585 | 567 | | |
586 | 568 | | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | 569 | | |
597 | | - | |
| 570 | + | |
| 571 | + | |
598 | 572 | | |
599 | | - | |
| 573 | + | |
600 | 574 | | |
601 | 575 | | |
602 | 576 | | |
| |||
607 | 581 | | |
608 | 582 | | |
609 | 583 | | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | 584 | | |
620 | | - | |
| 585 | + | |
| 586 | + | |
621 | 587 | | |
622 | | - | |
| 588 | + | |
623 | 589 | | |
624 | 590 | | |
625 | 591 | | |
626 | 592 | | |
627 | 593 | | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | 594 | | |
638 | | - | |
| 595 | + | |
| 596 | + | |
639 | 597 | | |
640 | | - | |
| 598 | + | |
641 | 599 | | |
642 | 600 | | |
643 | 601 | | |
| |||
648 | 606 | | |
649 | 607 | | |
650 | 608 | | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | 609 | | |
659 | | - | |
| 610 | + | |
| 611 | + | |
660 | 612 | | |
661 | | - | |
662 | 613 | | |
663 | 614 | | |
664 | 615 | | |
665 | | - | |
666 | 616 | | |
667 | 617 | | |
668 | 618 | | |
669 | 619 | | |
670 | | - | |
671 | | - | |
| 620 | + | |
672 | 621 | | |
| 622 | + | |
673 | 623 | | |
674 | 624 | | |
675 | 625 | | |
| |||
0 commit comments