Skip to content

reduce the amount of code being generated #26

@baywet

Description

@baywet

The build time of the service SDKs can take a while for the initial build/dependencies upgrade on some machines.
This is caused by the breadth of our API but we might have opportunities to improve that aspect by reducing the amount of code we generate.

The get field deserializers method might have opportunities for reduction by moving some of the code into helper methods in abstractions
https://github.com/microsoftgraph/msgraph-sdk-go/blob/3a362de6cb79ffc639841e0d8fb122975173c145/models/microsoft/graph/message.go#L320

Same for the serialize method
https://github.com/microsoftgraph/msgraph-sdk-go/blob/3a362de6cb79ffc639841e0d8fb122975173c145/models/microsoft/graph/message.go#L667

Lastly the field accessors might also provide such opportunity
https://github.com/microsoftgraph/msgraph-sdk-go/blob/3a362de6cb79ffc639841e0d8fb122975173c145/models/microsoft/graph/message.go#L160

The goal here is to look into these patterns, identify and share the examples of what could be improved, so we can feed the information back to the kiota generation process.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions