You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating Sourcery from version 2.1.7 to 2.2.5, we’re experiencing a significant performance regression during code generation. Specifically, the generation process now takes twice as long as it did previously.
Details:
• Version: Sourcery 2.2.5
• Previous Version: Sourcery 2.1.7
• Issue: Code generation time has doubled since the update.
• Benchmark Findings: Preliminary benchmarks suggest that the performance bottleneck occurs during the composer step.
Same result with swifttemplate.
Sourcery 2.1.7 - with cache
Using configuration file at '.sourcery.yml'
Resolving configurations took 0.11486291885375977
Scanning sources...
loadOrParse: 0.024678945541381836
reduce: 9.107589721679688e-05
composer: 0.009474039077758789
total: 0.034249067306518555
Found 169 types in 101 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.010762214660644531
Generating code...
Generating FakeData.stencil took 0.007063150405883789
Processing Ranges took 0.0005617141723632812
Generation took 0.01926708221435547
Finished.
Scanning sources...
loadOrParse: 0.009113311767578125
reduce: 1.6927719116210938e-05
composer: 0.0033371448516845703
total: 0.012470245361328125
Found 68 types in 37 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.00915384292602539
Generating code...
Generating FakeData.stencil took 0.04245901107788086
Processing Ranges took 0.0012149810791015625
Generation took 0.0545048713684082
Finished.
Scanning sources...
loadOrParse: 0.1591649055480957
reduce: 0.0002827644348144531
composer: 0.07755613327026367
total: 0.23700904846191406
Found 648 types in 882 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.01326894760131836
Generating code...
Generating FakeGQLData.stencil took 0.139390230178833
Processing Ranges took 0.005099058151245117
Generation took 0.164323091506958
Finished.
Scanning sources...
loadOrParse: 0.11017704010009766
reduce: 0.00014400482177734375
composer: 0.12227511405944824
total: 0.23260116577148438
Found 922 types in 268 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.02216792106628418
Generating code...
Generating FakeData.stencil took 0.054556846618652344
Processing Ranges took 0.0010449886322021484
Generating FakeGQLData.stencil took 0.005218029022216797
Processing Ranges took 0.0001850128173828125
Generation took 0.08526206016540527
Finished.
Scanning sources...
loadOrParse: 0.060417890548706055
reduce: 8.58306884765625e-05
composer: 0.05171012878417969
total: 0.11222076416015625
Found 496 types in 154 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.022245168685913086
Generating code...
Generating FakeData.stencil took 0.027439117431640625
Processing Ranges took 0.0006799697875976562
Generating FakeGQLData.stencil took 0.003365039825439453
Processing Ranges took 0.00012922286987304688
Generation took 0.05587196350097656
Finished.
Scanning sources...
loadOrParse: 0.04183316230773926
reduce: 6.699562072753906e-05
composer: 0.02956104278564453
total: 0.07146620750427246
Found 312 types in 104 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009196996688842773
Generating code...
Generating FakeData.stencil took 0.007847070693969727
Processing Ranges took 0.00017380714416503906
Generation took 0.01795506477355957
Finished.
Scanning sources...
loadOrParse: 0.013232946395874023
reduce: 2.5033950805664062e-05
composer: 0.00598907470703125
total: 0.01925206184387207
Found 78 types in 42 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009106874465942383
Generating code...
Generating FakeData.stencil took 0.011881113052368164
Processing Ranges took 0.00046181678771972656
Generation took 0.0224459171295166
Finished.
Scanning sources...
loadOrParse: 0.06112194061279297
reduce: 7.677078247070312e-05
composer: 0.0505070686340332
total: 0.11171197891235352
Found 534 types in 142 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.022274017333984375
Generating code...
Generating FakeData.stencil took 0.08481216430664062
Processing Ranges took 0.0024619102478027344
Generating FakeGQLData.stencil took 0.0035588741302490234
Processing Ranges took 0.0001468658447265625
Generation took 0.11620807647705078
Finished.
Scanning sources...
loadOrParse: 0.004790782928466797
reduce: 1.6927719116210938e-05
composer: 0.0021562576293945312
total: 0.006968021392822266
Found 34 types in 10 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009048938751220703
Generating code...
Generating FakeData.stencil took 0.008577823638916016
Processing Ranges took 0.00033092498779296875
Generation took 0.01883983612060547
Finished.
Scanning sources...
loadOrParse: 0.10745716094970703
reduce: 0.0001800060272216797
composer: 0.041101932525634766
total: 0.14874505996704102
Found 882 types in 435 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009104728698730469
Generating code...
Generating FakeData.stencil took 0.047447919845581055
Processing Ranges took 0.0009899139404296875
Generation took 0.059108734130859375
Finished.
Scanning sources...
loadOrParse: 0.021364927291870117
reduce: 2.9087066650390625e-05
composer: 0.009677886962890625
total: 0.031080007553100586
Found 112 types in 40 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009172916412353516
Generating code...
Generating FakeData.stencil took 0.03893303871154785
Processing Ranges took 0.0012030601501464844
Generation took 0.051004886627197266
Finished.
Scanning sources...
loadOrParse: 0.004927158355712891
reduce: 5.0067901611328125e-06
composer: 0.001001119613647461
total: 0.005939006805419922
Found 7 types in 3 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009380817413330078
Generating code...
Generating FakeData.stencil took 0.0032529830932617188
Processing Ranges took 0.0004582405090332031
Generation took 0.013991832733154297
Finished.
Scanning sources...
loadOrParse: 0.021188735961914062
reduce: 1.5735626220703125e-05
composer: 0.0046231746673583984
total: 0.025833845138549805
Found 67 types in 22 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.025143861770629883
Generating code...
Generating FakeData.stencil took 0.01677107810974121
Processing Ranges took 0.000926971435546875
Generating FakeGQLData.stencil took 0.0072290897369384766
Processing Ranges took 0.00024199485778808594
Generation took 0.051828861236572266
Finished.
Scanning sources...
loadOrParse: 0.011918067932128906
reduce: 1.3828277587890625e-05
composer: 0.0035009384155273438
total: 0.015439033508300781
Found 37 types in 11 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.026305675506591797
Generating code...
Generating FakeData.stencil took 0.005148887634277344
Processing Ranges took 0.0002598762512207031
Generating FakeGQLData.stencil took 0.005029201507568359
Processing Ranges took 0.0002751350402832031
Generation took 0.03835582733154297
Finished.
Scanning sources...
loadOrParse: 0.07476401329040527
reduce: 3.0994415283203125e-05
composer: 0.03657698631286621
total: 0.11137795448303223
Found 224 types in 57 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.024266958236694336
Generating code...
Generating FakeData.stencil took 0.010174989700317383
Processing Ranges took 0.0001900196075439453
Generating FakeGQLData.stencil took 0.14603114128112793
Processing Ranges took 0.0036568641662597656
Generation took 0.18938589096069336
Finished.
Scanning sources...
loadOrParse: 0.025691986083984375
reduce: 3.528594970703125e-05
composer: 0.014060020446777344
total: 0.03979301452636719
Found 187 types in 55 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.02258610725402832
Generating code...
Generating FakeData.stencil took 0.008999109268188477
Processing Ranges took 0.0002961158752441406
Generating FakeGQLData.stencil took 0.03009796142578125
Processing Ranges took 0.0011377334594726562
Generation took 0.06542015075683594
Finished.
Scanning sources...
loadOrParse: 0.05202984809875488
reduce: 3.886222839355469e-05
composer: 0.02190709114074707
total: 0.07398200035095215
Found 209 types in 24 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.013124942779541016
Generating code...
Generating FakeGQLData.stencil took 0.003473043441772461
Processing Ranges took 0.00020503997802734375
Generation took 0.01745009422302246
Finished.
Scanning sources...
loadOrParse: 0.07915782928466797
reduce: 9.107589721679688e-05
composer: 0.06371283531188965
total: 0.14296889305114746
Found 600 types in 164 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.0229339599609375
Generating code...
Generating FakeData.stencil took 0.03148508071899414
Processing Ranges took 0.0007379055023193359
Generating FakeGQLData.stencil took 0.21465206146240234
Processing Ranges took 0.007573843002319336
Generation took 0.28861093521118164
Finished.
Scanning sources...
loadOrParse: 0.014414787292480469
reduce: 2.2172927856445312e-05
composer: 0.008046865463256836
total: 0.022487878799438477
Found 105 types in 37 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.02257513999938965
Generating code...
Generating FakeData.stencil took 0.005351066589355469
Processing Ranges took 0.00022792816162109375
Generating FakeGQLData.stencil took 0.0023691654205322266
Processing Ranges took 0.00019598007202148438
Generation took 0.03177022933959961
Finished.
Scanning sources...
loadOrParse: 0.21893692016601562
reduce: 0.00024509429931640625
composer: 0.1964709758758545
total: 0.41565990447998047
Found 1622 types in 471 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.022426128387451172
Generating code...
Generating FakeData.stencil took 0.18474793434143066
Processing Ranges took 0.0047130584716796875
Generating FakeGQLData.stencil took 0.1450948715209961
Processing Ranges took 0.005090951919555664
Generation took 0.37190723419189453
Finished.
Scanning sources...
loadOrParse: 0.022921085357666016
reduce: 2.2172927856445312e-05
composer: 0.01645183563232422
total: 0.03940105438232422
Found 141 types in 30 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009208202362060547
Generating code...
Generating FakeData.stencil took 0.032418012619018555
Processing Ranges took 0.0010142326354980469
Generation took 0.04427003860473633
Finished.
Scanning sources...
loadOrParse: 0.02726602554321289
reduce: 3.0994415283203125e-05
composer: 0.028383255004882812
total: 0.05568695068359375
Found 161 types in 45 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009262800216674805
Generating code...
Generating FakeData.stencil took 0.005751848220825195
Processing Ranges took 0.00020313262939453125
Generation took 0.016511917114257812
Finished.
Scanning sources...
loadOrParse: 0.019706010818481445
reduce: 1.7881393432617188e-05
composer: 0.020121097564697266
total: 0.03984999656677246
Found 134 types in 35 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.022317886352539062
Generating code...
Generating FakeData.stencil took 0.028775930404663086
Processing Ranges took 0.0009570121765136719
Generating FakeGQLData.stencil took 0.0024900436401367188
Processing Ranges took 0.00016307830810546875
Generation took 0.0578618049621582
Finished.
Scanning sources...
loadOrParse: 0.015594959259033203
reduce: 2.002716064453125e-05
composer: 0.011337995529174805
total: 0.026957035064697266
Found 96 types in 30 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009115934371948242
Generating code...
Generating FakeData.stencil took 0.012824058532714844
Processing Ranges took 0.0003962516784667969
Generation took 0.023140907287597656
Finished.
Scanning sources...
loadOrParse: 0.01399087905883789
reduce: 2.193450927734375e-05
composer: 0.007642984390258789
total: 0.021661043167114258
Found 89 types in 26 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.022092103958129883
Generating code...
Generating FakeData.stencil took 0.007134914398193359
Processing Ranges took 0.00029206275939941406
Generating FakeGQLData.stencil took 0.002324819564819336
Processing Ranges took 0.000148773193359375
Generation took 0.0331881046295166
Finished.
Scanning sources...
loadOrParse: 0.038648128509521484
reduce: 4.8160552978515625e-05
composer: 0.02966594696044922
total: 0.06836700439453125
Found 300 types in 103 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009095907211303711
Generating code...
Generating FakeData.stencil took 0.02126908302307129
Processing Ranges took 0.0006778240203857422
Generation took 0.03253889083862305
Finished.
Scanning sources...
loadOrParse: 0.007838249206542969
reduce: 1.4066696166992188e-05
composer: 0.003332853317260742
total: 0.011188030242919922
Found 35 types in 17 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009106874465942383
Generating code...
Generating FakeData.stencil took 0.0024831295013427734
Processing Ranges took 0.000164031982421875
Generation took 0.012461662292480469
Finished.
Processing time 4.226562023162842 seconds
Sourcery 2.2.5 - with cache
Using configuration file at '.sourcery.yml'
Resolving configurations took 0.09630107879638672
Scanning sources...
loadOrParse: 0.022745132446289062
reduce: 7.200241088867188e-05
composer: 0.009798049926757812
total: 0.03264307975769043
Found 171 types in 101 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009517908096313477
Generating code...
Generating FakeData.stencil took 0.007052898406982422
Processing Ranges took 0.0002980232238769531
Generation took 0.017469167709350586
Finished.
Scanning sources...
loadOrParse: 0.009094715118408203
reduce: 2.288818359375e-05
composer: 0.0036301612854003906
total: 0.012785911560058594
Found 68 types in 37 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009387969970703125
Generating code...
Generating FakeData.stencil took 0.04349207878112793
Processing Ranges took 0.0011286735534667969
Generation took 0.05610799789428711
Finished.
Scanning sources...
loadOrParse: 0.18094182014465332
reduce: 0.0002989768981933594
composer: 0.4284639358520508
total: 0.609731912612915
Found 648 types in 882 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.013214111328125
Generating code...
Generating FakeGQLData.stencil took 0.13817286491394043
Processing Ranges took 0.005019187927246094
Generation took 0.16468000411987305
Finished.
Scanning sources...
loadOrParse: 0.11217093467712402
reduce: 0.00013899803161621094
composer: 0.9198870658874512
total: 1.0322411060333252
Found 922 types in 268 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.022185087203979492
Generating code...
Generating FakeData.stencil took 0.05480313301086426
Processing Ranges took 0.001100778579711914
Generating FakeGQLData.stencil took 0.005201101303100586
Processing Ranges took 0.0002040863037109375
Generation took 0.0857088565826416
Finished.
Scanning sources...
loadOrParse: 0.06268692016601562
reduce: 0.00010728836059570312
composer: 0.18182373046875
total: 0.2446436882019043
Found 496 types in 154 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.022476911544799805
Generating code...
Generating FakeData.stencil took 0.02666306495666504
Processing Ranges took 0.0007669925689697266
Generating FakeGQLData.stencil took 0.0035932064056396484
Processing Ranges took 0.00015497207641601562
Generation took 0.05526089668273926
Finished.
Scanning sources...
loadOrParse: 0.040753841400146484
reduce: 5.1021575927734375e-05
composer: 0.09631490707397461
total: 0.1371440887451172
Found 312 types in 104 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009274959564208984
Generating code...
Generating FakeData.stencil took 0.007968902587890625
Processing Ranges took 0.00019407272338867188
Generation took 0.01795792579650879
Finished.
Scanning sources...
loadOrParse: 0.013356208801269531
reduce: 2.09808349609375e-05
composer: 0.00958871841430664
total: 0.022985219955444336
Found 78 types in 42 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009241819381713867
Generating code...
Generating FakeData.stencil took 0.012040138244628906
Processing Ranges took 0.0005002021789550781
Generation took 0.02266979217529297
Finished.
Scanning sources...
loadOrParse: 0.05869603157043457
reduce: 9.393692016601562e-05
composer: 0.1996760368347168
total: 0.258497953414917
Found 536 types in 142 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.022577762603759766
Generating code...
Generating FakeData.stencil took 0.08552002906799316
Processing Ranges took 0.002424001693725586
Generating FakeGQLData.stencil took 0.003476858139038086
Processing Ranges took 0.00015783309936523438
Generation took 0.11789989471435547
Finished.
Scanning sources...
loadOrParse: 0.0050048828125
reduce: 1.0967254638671875e-05
composer: 0.002763032913208008
total: 0.007801055908203125
Found 34 types in 10 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009181022644042969
Generating code...
Generating FakeData.stencil took 0.008605003356933594
Processing Ranges took 0.00034999847412109375
Generation took 0.018867015838623047
Finished.
Scanning sources...
loadOrParse: 0.10282588005065918
reduce: 0.0002498626708984375
composer: 0.05691719055175781
total: 0.160020112991333
Found 885 types in 435 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009427070617675781
Generating code...
Generating FakeData.stencil took 0.046813011169433594
Processing Ranges took 0.0009698867797851562
Generation took 0.05872988700866699
Finished.
Scanning sources...
loadOrParse: 0.02009892463684082
reduce: 2.6941299438476562e-05
composer: 0.011789083480834961
total: 0.031950950622558594
Found 112 types in 40 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009325027465820312
Generating code...
Generating FakeData.stencil took 0.03584098815917969
Processing Ranges took 0.0012392997741699219
Generation took 0.04844784736633301
Finished.
Scanning sources...
loadOrParse: 0.0016360282897949219
reduce: 5.9604644775390625e-06
composer: 0.0004181861877441406
total: 0.0020880699157714844
Found 8 types in 3 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.008996009826660156
Generating code...
Generating FakeData.stencil took 0.0031201839447021484
Processing Ranges took 0.0002269744873046875
Generation took 0.012840032577514648
Finished.
Scanning sources...
loadOrParse: 0.008584022521972656
reduce: 1.811981201171875e-05
composer: 0.005500078201293945
total: 0.014126062393188477
Found 68 types in 22 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.022236108779907227
Generating code...
Generating FakeData.stencil took 0.012353897094726562
Processing Ranges took 0.0005140304565429688
Generating FakeGQLData.stencil took 0.005578041076660156
Processing Ranges took 0.00022125244140625
Generation took 0.04236912727355957
Finished.
Scanning sources...
loadOrParse: 0.007194995880126953
reduce: 1.8835067749023438e-05
composer: 0.003759145736694336
total: 0.011028051376342773
Found 37 types in 11 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.022412776947021484
Generating code...
Generating FakeData.stencil took 0.005113840103149414
Processing Ranges took 0.0003418922424316406
Generating FakeGQLData.stencil took 0.005198955535888672
Processing Ranges took 0.00030517578125
Generation took 0.03469276428222656
Finished.
Scanning sources...
loadOrParse: 0.03191423416137695
reduce: 3.600120544433594e-05
composer: 0.09308981895446777
total: 0.1250629425048828
Found 224 types in 57 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.022310733795166016
Generating code...
Generating FakeData.stencil took 0.007339000701904297
Processing Ranges took 0.00022983551025390625
Generating FakeGQLData.stencil took 0.11306190490722656
Processing Ranges took 0.0036389827728271484
Generation took 0.15283894538879395
Finished.
Scanning sources...
loadOrParse: 0.024447917938232422
reduce: 3.504753112792969e-05
composer: 0.023608922958374023
total: 0.048123836517333984
Found 187 types in 55 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.022312164306640625
Generating code...
Generating FakeData.stencil took 0.009203910827636719
Processing Ranges took 0.0002970695495605469
Generating FakeGQLData.stencil took 0.030961036682128906
Processing Ranges took 0.0011699199676513672
Generation took 0.06659603118896484
Finished.
Scanning sources...
loadOrParse: 0.05474209785461426
reduce: 4.506111145019531e-05
composer: 0.041847944259643555
total: 0.09667205810546875
Found 209 types in 24 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.013760089874267578
Generating code...
Generating FakeGQLData.stencil took 0.003866910934448242
Processing Ranges took 0.00019812583923339844
Generation took 0.018416881561279297
Finished.
Scanning sources...
loadOrParse: 0.07590198516845703
reduce: 7.772445678710938e-05
composer: 0.27359914779663086
total: 0.3496060371398926
Found 601 types in 164 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.02245330810546875
Generating code...
Generating FakeData.stencil took 0.03171682357788086
Processing Ranges took 0.0007081031799316406
Generating FakeGQLData.stencil took 0.21436309814453125
Processing Ranges took 0.007709980010986328
Generation took 0.2898139953613281
Finished.
Scanning sources...
loadOrParse: 0.01343083381652832
reduce: 3.0040740966796875e-05
composer: 0.011479854583740234
total: 0.02496480941772461
Found 105 types in 37 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.022349119186401367
Generating code...
Generating FakeData.stencil took 0.0055408477783203125
Processing Ranges took 0.0002880096435546875
Generating FakeGQLData.stencil took 0.0022411346435546875
Processing Ranges took 0.00017118453979492188
Generation took 0.03167009353637695
Finished.
Scanning sources...
loadOrParse: 0.2050790786743164
reduce: 0.0003058910369873047
composer: 2.295958995819092
total: 2.50142502784729
Found 1622 types in 471 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.02235698699951172
Generating code...
Generating FakeData.stencil took 0.1848289966583252
Processing Ranges took 0.004656076431274414
Generating FakeGQLData.stencil took 0.14597702026367188
Processing Ranges took 0.0047948360443115234
Generation took 0.3741607666015625
Finished.
Scanning sources...
loadOrParse: 0.02387213706970215
reduce: 2.8133392333984375e-05
composer: 0.05761909484863281
total: 0.0815591812133789
Found 141 types in 30 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009190082550048828
Generating code...
Generating FakeData.stencil took 0.03315401077270508
Processing Ranges took 0.0009920597076416016
Generation took 0.04485893249511719
Finished.
Scanning sources...
loadOrParse: 0.027875185012817383
reduce: 2.8133392333984375e-05
composer: 0.15040874481201172
total: 0.17834019660949707
Found 161 types in 45 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009215116500854492
Generating code...
Generating FakeData.stencil took 0.005424976348876953
Processing Ranges took 0.00018215179443359375
Generation took 0.01549983024597168
Finished.
Scanning sources...
loadOrParse: 0.019497156143188477
reduce: 2.8848648071289062e-05
composer: 0.04072308540344238
total: 0.060288190841674805
Found 134 types in 35 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.022365093231201172
Generating code...
Generating FakeData.stencil took 0.029085159301757812
Processing Ranges took 0.000946044921875
Generating FakeGQLData.stencil took 0.0023849010467529297
Processing Ranges took 0.0001308917999267578
Generation took 0.056710004806518555
Finished.
Scanning sources...
loadOrParse: 0.015841007232666016
reduce: 2.6226043701171875e-05
composer: 0.02651500701904297
total: 0.04241609573364258
Found 96 types in 30 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009190082550048828
Generating code...
Generating FakeData.stencil took 0.013015031814575195
Processing Ranges took 0.0004010200500488281
Generation took 0.023374080657958984
Finished.
Scanning sources...
loadOrParse: 0.013476133346557617
reduce: 4.887580871582031e-05
composer: 0.013547182083129883
total: 0.027101993560791016
Found 89 types in 26 files, 0 changed from last run.
Loading templates...
Loaded 2 templates.
Loading took 0.022381067276000977
Generating code...
Generating FakeData.stencil took 0.007256984710693359
Processing Ranges took 0.0002980232238769531
Generating FakeGQLData.stencil took 0.0021419525146484375
Processing Ranges took 0.00015497207641601562
Generation took 0.03342914581298828
Finished.
Scanning sources...
loadOrParse: 0.03832888603210449
reduce: 5.602836608886719e-05
composer: 0.07706594467163086
total: 0.11547183990478516
Found 300 types in 103 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009285926818847656
Generating code...
Generating FakeData.stencil took 0.0218658447265625
Processing Ranges took 0.0007328987121582031
Generation took 0.033102989196777344
Finished.
Scanning sources...
loadOrParse: 0.007768869400024414
reduce: 1.0967254638671875e-05
composer: 0.0038690567016601562
total: 0.011672019958496094
Found 35 types in 17 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Loading took 0.009107112884521484
Generating code...
Generating FakeData.stencil took 0.002613067626953125
Processing Ranges took 0.00022292137145996094
Generation took 0.012598991394042969
Finished.
Processing time 8.26 seconds
The text was updated successfully, but these errors were encountered:
Hello,
After updating Sourcery from version 2.1.7 to 2.2.5, we’re experiencing a significant performance regression during code generation. Specifically, the generation process now takes twice as long as it did previously.
Details:
• Version: Sourcery 2.2.5
• Previous Version: Sourcery 2.1.7
• Issue: Code generation time has doubled since the update.
• Benchmark Findings: Preliminary benchmarks suggest that the performance bottleneck occurs during the composer step.
Same result with
swifttemplate
.Sourcery 2.1.7 - with cache
Sourcery 2.2.5 - with cache
The text was updated successfully, but these errors were encountered: