Commit 339bbd4
perf: cache grid property in HTMLTableSerializer (#373)
* refactor: avoid nested grid access in HTMLTableSerializer
Refactor row/col iteration to bypass Pydantic __getitem__ calls,
reducing overhead from nested loops and improving table serialization speed.
Signed-off-by: doyikim <[email protected]>
* fix autoflake findings
Signed-off-by: Panos Vagenas <[email protected]>
---------
Signed-off-by: doyikim <[email protected]>
Signed-off-by: Panos Vagenas <[email protected]>
Co-authored-by: dykim <[email protected]>
Co-authored-by: Panos Vagenas <[email protected]>1 parent b2095b3 commit 339bbd4
1 file changed
+2
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
| |||
347 | 346 | | |
348 | 347 | | |
349 | 348 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | 349 | | |
354 | 350 | | |
355 | 351 | | |
| |||
359 | 355 | | |
360 | 356 | | |
361 | 357 | | |
362 | | - | |
| 358 | + | |
363 | 359 | | |
364 | | - | |
365 | | - | |
| 360 | + | |
366 | 361 | | |
367 | 362 | | |
368 | 363 | | |
| |||
0 commit comments