microsoft / react-native-windows

A framework for building native Windows apps with React.
https://microsoft.github.io/react-native-windows/
Other
16.31k stars 1.14k forks source link

Consider coalescing community native modules #4795

Open kmelmon opened 4 years ago

kmelmon commented 4 years ago

With today's architecture, each native module (that's outside the RNW repo) ends up producing a separate DLL. This could end up creating a large number of DLLs, especially considering the Lean Core effort.

This issue is tracking doing some analysis to determine if a typical RNW app will have too many DLLs, and if so, consider a design for coalescing native modules into fewer DLLs.

chrisglein commented 4 years ago

Concern is in overhead caused by having multiple dlls. Duplicated code, no foldability, rebasing.

There's also potential future questions around binary distribution of the platform and community modules.

Do we need app choice here?