Commit 3f0479b
Read whole lines at once in fai_retrieve()
Because fai_retrieve() is given only well-formatted input containing
lines of the same length, it already knows exactly where the base and
non-graphic characters are. So in general the interval to be read will
look like
......ATGCAT (read last six bases and line terminator)
ATGCATGCATGC (read complete line including line terminator)
ATGCATGCATGC (read complete line including line terminator)
ATGC........ (read first four base characters)
and can be read a line at a time instead of a character at a time,
with special handling for the partial first and last lines, and
discarding the terminator characters at the end of each line read.1 parent f3d401c commit 3f0479b
1 file changed
+47
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
719 | | - | |
720 | | - | |
| 718 | + | |
| 719 | + | |
721 | 720 | | |
722 | 721 | | |
723 | 722 | | |
| |||
743 | 742 | | |
744 | 743 | | |
745 | 744 | | |
746 | | - | |
747 | | - | |
748 | | - | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
749 | 748 | | |
750 | 749 | | |
751 | 750 | | |
752 | 751 | | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
762 | 779 | | |
763 | 780 | | |
764 | | - | |
765 | | - | |
766 | | - | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
767 | 796 | | |
768 | 797 | | |
769 | 798 | | |
| |||
0 commit comments