Commit 9c53d78
(improvement) cluster: cache parsed tablet routing type in ResponseFuture
The _set_result() method re-parses the same complex TupleType string
on every query result that includes tablet routing info. Cache the
parsed type as a class attribute on ResponseFuture so lookup_casstype()
is only called once for the lifetime of the process.1 parent 1ec7f66 commit 9c53d78
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4345 | 4345 | | |
4346 | 4346 | | |
4347 | 4347 | | |
| 4348 | + | |
4348 | 4349 | | |
4349 | 4350 | | |
4350 | 4351 | | |
| |||
4642 | 4643 | | |
4643 | 4644 | | |
4644 | 4645 | | |
4645 | | - | |
| 4646 | + | |
| 4647 | + | |
| 4648 | + | |
| 4649 | + | |
4646 | 4650 | | |
4647 | 4651 | | |
4648 | 4652 | | |
| |||
0 commit comments