Investigate selective generation or loading of attribute proto messages
suyashkumar opened this issue · 1 comments
suyashkumar commented
Projects that import or use Attributes.proto
end up importing huge swaths of autogen'd code (that can increase binary sizes or load times). Some potential fixes include:
- Extending
dicom-protos
to take a flag to only generate some subset of DICOM attribute messages that may be needed by a client - Restructuring autogen'd code so that specific DICOM attribute messages can be imported without the others (can be done with autogen'd import statements, or some other type of dependency injection)
suyashkumar commented
Attributes_pb.js
is 10.8Mb of source, golang source file is >3 Mb