https://kotlinlang.org logo
Title
y

Yang

04/05/2023, 4:35 AM
question re.
generateSourcesDuringGradleSync
being
true
by default: does it mean the initial IDE sync time will increase roughly linearly as the number of modules that generate Apollo sources increase?
I assume the IDE sync button can’t take advantage of configuration on demand so it’ll always run it for all modules with the apollo plugin applied?
b

bod

04/05/2023, 7:08 AM
sync time will increase roughly linearly as the number of modules that generate Apollo sources increase
Yes I think that's fair. In our experience the generation time itself is usually not a huge differentiator, it's a fraction of compilation time.
y

Yang

04/05/2023, 7:48 AM
I’m asking because I’m wondering if I should do this for our ksp plugins 😬
The main issue I see is most devs only need the symbols to resolve for their modules in the ide so running it on all modules during sync takes unnecessarily longer
b

bod

04/05/2023, 7:53 AM
I see... yeah I guess maybe you could try it, and if a performance penalty is noticeable, disable it 🙂
y

Yang

04/05/2023, 7:54 AM
so might not be a good idea if you have sandbox app modules for each feature
b

bod

04/05/2023, 8:13 AM
I assume the IDE sync button can’t take advantage of configuration on demand
actually... I've put a but thinking about it I'm not actually sure of that?
what would prevent the IDE from benefitting from it?
y

Yang

04/05/2023, 9:15 AM
The ide wouldn’t know exactly which projects to sync right? So it just syncs all projects defined in settings?
I imagine something like Dropbox focus can help
b

bod

04/05/2023, 9:19 AM
I guess it depends on what "sync" actually does concretely (which I'm not sure) 😅. But I wouldn't be too surprised if config on demand can be benefitted from.
y

Yang

04/05/2023, 9:22 AM
every module would demand to be configured 😄