Commit 685847e
committed
Update to optimize imports for faster startup times
Don't import all schemas instead import the schemas we actually use.
This also makes the importing of services lazy so that only schemas are
imported which we actually want to use.
This fixes a performance issue where just importing commercetools
would import all the marshmallow schemas which is terribly slow.1 parent d984bd4 commit 685847e
File tree
5 files changed
+151
-119
lines changed- codegen
- src/commercetools
5 files changed
+151
-119
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 68 | + | |
75 | 69 | | |
76 | 70 | | |
77 | 71 | | |
| |||
277 | 271 | | |
278 | 272 | | |
279 | 273 | | |
280 | | - | |
| 274 | + | |
281 | 275 | | |
282 | 276 | | |
283 | 277 | | |
| |||
462 | 456 | | |
463 | 457 | | |
464 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
465 | 462 | | |
466 | | - | |
| 463 | + | |
467 | 464 | | |
468 | 465 | | |
469 | 466 | | |
| |||
0 commit comments