Commit e279904
committed
Skip pyproj Transformer in chunk worker when Numba handles transform (#1045)
For supported CRS pairs, the chunk worker now tries the Numba fast
path BEFORE creating a pyproj.Transformer. If Numba succeeds (which
it does for all 10+ supported projections), the Transformer is never
created, saving ~15ms of pyproj setup per chunk.
Before: 2 Transformer.from_crs calls per reproject (grid + chunk)
After: 1 call (grid only, ~500 points for boundary estimation)
The grid computation still uses pyproj for boundary transforms
since it's only ~500 points and runs once. The per-pixel transform
(millions of points) is handled entirely by Numba.1 parent 7c499df commit e279904
1 file changed
+20
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
181 | 186 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
187 | 198 | | |
188 | 199 | | |
189 | 200 | | |
| |||
0 commit comments