forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3de359f
committed
Simplify json lexing state
Instead of updating the length as we go, use a const pointer to end ofthe input, which we know already at the start.This simplifies the coding and may improve performance slightly, butthe real motivation for doing this is to make further changes in thisarea easier to reason about.Discussion:https://www.postgresql.org/message-id/CAFBsxsGhaR2KQ5eisaK%3D6Vm60t%3DaxhD8Ckj1qFoCH1pktZi%2B2w%40mail.gmail.com1 parent3140f08 commit3de359f
1 file changed
+8
-15
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
519 | 519 |
| |
520 | 520 |
| |
521 | 521 |
| |
522 |
| - | |
| 522 | + | |
523 | 523 |
| |
524 | 524 |
| |
525 | 525 |
| |
526 | 526 |
| |
527 |
| - | |
528 |
| - | |
529 |
| - | |
| 527 | + | |
530 | 528 |
| |
531 | 529 |
| |
532 | 530 |
| |
533 | 531 |
| |
534 | 532 |
| |
535 | 533 |
| |
536 |
| - | |
537 | 534 |
| |
538 | 535 |
| |
539 | 536 |
| |
540 | 537 |
| |
541 |
| - | |
| 538 | + | |
542 | 539 |
| |
543 | 540 |
| |
544 | 541 |
| |
| |||
623 | 620 |
| |
624 | 621 |
| |
625 | 622 |
| |
626 |
| - | |
| 623 | + | |
627 | 624 |
| |
628 | 625 |
| |
629 | 626 |
| |
| |||
672 | 669 |
| |
673 | 670 |
| |
674 | 671 |
| |
675 |
| - | |
| 672 | + | |
676 | 673 |
| |
677 | 674 |
| |
678 | 675 |
| |
679 | 676 |
| |
680 | 677 |
| |
681 | 678 |
| |
682 | 679 |
| |
683 |
| - | |
684 | 680 |
| |
685 | 681 |
| |
686 | 682 |
| |
687 |
| - | |
688 | 683 |
| |
689 |
| - | |
| 684 | + | |
690 | 685 |
| |
691 | 686 |
| |
692 | 687 |
| |
| |||
704 | 699 |
| |
705 | 700 |
| |
706 | 701 |
| |
707 |
| - | |
708 |
| - | |
| 702 | + | |
709 | 703 |
| |
710 | 704 |
| |
711 | 705 |
| |
| |||
718 | 712 |
| |
719 | 713 |
| |
720 | 714 |
| |
721 |
| - | |
722 |
| - | |
| 715 | + | |
723 | 716 |
| |
724 | 717 |
| |
725 | 718 |
| |
|
0 commit comments
Comments
(0)