dropbox-sdk-obj-c icon indicating copy to clipboard operation
dropbox-sdk-obj-c copied to clipboard

Improve build time by splitting super large autogenerated .m files into smaller ones

Open xjki opened this issue 2 years ago • 1 comments

Currently largest .m file is DBTeamLogObjects.m - more than 180K lines of code with more than 5MB raw text. It alone takes more than 30 seconds to compile with Xcode14 on 3,2 GHz 6-Core Intel Core i7 Mac.

Second largest .m file is DBTeamObjects.m - more than 40K lines of code.

As these files are autogenerated anyway, it would be great if they would be splitted into multiple implementation (.m) parts that would make compilation of the library (and projects including it) multiple times faster thanks to parallelization of Xcode compilation. Also Xcode navigation features would not freeze trying to navigate these monsters.

This would make significant impact improving build times for every project using the library. Example: https://twitter.com/russshanahan/status/1592352159135191040

xjki avatar Nov 15 '22 11:11 xjki

Thanks for the detailed message! I can't make any promises myself, but I'm sending this along to the team.

greg-db avatar Nov 15 '22 16:11 greg-db