Commit c9846c9
authored
perf(storage): use google_crc32c.value() for simpler crc32c calculation (#16761)
## Summary
- Simplified CRC32C calculation by using `google_crc32c.value()`.
- Improved code readability and reduced complexity in checksum logic.1 parent 7073be1 commit c9846c9Copy full SHA for c9846c9
4 files changed
+8-15Lines changed: 8 additions & 15 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- packages/google-cloud-storage
- google/cloud/storage/asyncio/retry
- tests/unit/asyncio
- retry
Expand file treeCollapse file tree
Open diff view settings
Collapse file
packages/google-cloud-storage/google/cloud/storage/asyncio/retry/writes_resumption_strategy.py
Copy file name to clipboardExpand all lines: packages/google-cloud-storage/google/cloud/storage/asyncio/retry/writes_resumption_strategy.py+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
84 | 84 | |
85 | 85 | |
86 | 86 | |
87 | | - |
88 | | - |
| 87 | + |
89 | 88 | |
90 | 89 | |
91 | 90 | |
|
Collapse file
packages/google-cloud-storage/tests/unit/asyncio/retry/test_reads_resumption_strategy.py
Copy file name to clipboardExpand all lines: packages/google-cloud-storage/tests/unit/asyncio/retry/test_reads_resumption_strategy.py+2-3Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | | - |
| 20 | + |
21 | 21 | |
22 | 22 | |
23 | 23 | |
| ||
77 | 77 | |
78 | 78 | |
79 | 79 | |
80 | | - |
81 | | - |
| 80 | + |
82 | 81 | |
83 | 82 | |
84 | 83 | |
|
Collapse file
packages/google-cloud-storage/tests/unit/asyncio/retry/test_writes_resumption_strategy.py
Copy file name to clipboardExpand all lines: packages/google-cloud-storage/tests/unit/asyncio/retry/test_writes_resumption_strategy.py+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
125 | 125 | |
126 | 126 | |
127 | 127 | |
128 | | - |
129 | | - |
| 128 | + |
130 | 129 | |
131 | 130 | |
132 | 131 | |
|
Collapse file
packages/google-cloud-storage/tests/unit/asyncio/test_async_multi_range_downloader.py
Copy file name to clipboardExpand all lines: packages/google-cloud-storage/tests/unit/asyncio/test_async_multi_range_downloader.py+4-8Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
19 | 19 | |
20 | 20 | |
21 | 21 | |
22 | | - |
| 22 | + |
23 | 23 | |
24 | 24 | |
25 | 25 | |
| ||
106 | 106 | |
107 | 107 | |
108 | 108 | |
109 | | - |
110 | | - |
111 | | - |
112 | | - |
113 | | - |
| 109 | + |
| 110 | + |
114 | 111 | |
115 | 112 | |
116 | 113 | |
| ||
187 | 184 | |
188 | 185 | |
189 | 186 | |
190 | | - |
191 | | - |
| 187 | + |
192 | 188 | |
193 | 189 | |
194 | 190 | |
|
0 commit comments