Commit aad7682
committed
internal: parallel the
The execution of the reader goroutine is the bottleneck for our
benchmarks. About 1/3 of this goroutine's execution time is spent
searching for the future and setting the response.
This part of the work can easily be moved to a separate goroutine.
In practice, the data transfer through the channel is not much
efficient, but this can be improved later.reader goroutine1 parent 59ad9bf commit aad7682
2 files changed
Lines changed: 28 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
852 | 878 | | |
853 | 879 | | |
854 | 880 | | |
| |||
874 | 900 | | |
875 | 901 | | |
876 | 902 | | |
877 | | - | |
878 | 903 | | |
879 | 904 | | |
880 | 905 | | |
| |||
889 | 914 | | |
890 | 915 | | |
891 | 916 | | |
892 | | - | |
893 | | - | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | | - | |
| 917 | + | |
902 | 918 | | |
903 | 919 | | |
904 | 920 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| 280 | + | |
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
| |||
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
299 | | - | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| |||
0 commit comments