microsoft / react-native-windows

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

Eliminate or reduce unneeded dependency on boost #9329

Closed asklar closed 1 year ago

asklar commented 2 years ago

For the most part, we don't need much from boost:

Rationale: boost is a large dependency - around 180 MB; trimming down its use or finding replacements in the STL would benefit everyone.

chrisglein commented 2 years ago

Office desktop code uses, can we isolate to that flavor? There's some clean up in progress here, with some old web socket code deleted this may be able to get clean.

RNW code uses it for trivial things like string::ends_with or starts_with. These should be available with std::latest or maybe even std::cpp23 That seems like great clean up that we can do now.

Some test code uses it, can trim down Related #9328. Any others?

NickGerleman commented 2 years ago

Folly uses it (does it need to?)

I think it is set up to require it in several areas. It would be a significant undertaking to move it away for internal folly code. Maybe RN could use a smaller subset of folly though.

Rationale: boost is a large dependency - around 180 MB

FWIW the nupkg is 24MB, so we are not transferring so much over the wire. There's still a disk space hit though.