Commit 9fc5382
committed
(improvement) readTypeInfo: fast-path for simple native types
Add early return for native type IDs (0x0001 through TypeDuration),
skipping the TypeCustom check and the collection/UDT/tuple switch.
Also convert single-case type switch to a type assertion.
Signed-off-by: Yaniv Kaul <yaniv.kaul@scylladb.com>1 parent 16bcc44 commit 9fc5382
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
715 | 720 | | |
716 | 721 | | |
717 | 722 | | |
| |||
923 | 928 | | |
924 | 929 | | |
925 | 930 | | |
926 | | - | |
927 | | - | |
928 | | - | |
| 931 | + | |
929 | 932 | | |
930 | | - | |
| 933 | + | |
931 | 934 | | |
932 | 935 | | |
933 | 936 | | |
| |||
0 commit comments