swagger-codegen-ts icon indicating copy to clipboard operation
swagger-codegen-ts copied to clipboard

try optimize code

Open Geksanit opened this issue 3 years ago • 2 comments

image in this snippet, the function is called three times with the same result, almost. Perhaps you can get by with just one function call.

Geksanit avatar Nov 09 '21 09:11 Geksanit

I think this will speed up the code generation time

Geksanit avatar Nov 09 '21 09:11 Geksanit

In our project, this function takes just ~240ms of ~24s, i.e. just 1% of the total time. But it's a good point that we could or should eventually profile the app to check if there is an easy speed boost!

kokovtsev avatar Nov 10 '21 11:11 kokovtsev