Faster app build (internal only)

Kalen Petersen · Friday Demos · July 18, 2025 · 2:43

Quick demo of some work to improve internal tools to make our engineering team more productive.

Try it yourselfThe full week on docsenginternalproductivity

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. Hello. So, this is kind of a some changes I made for the internal development workflow. So, I was noticing that the backend builds with Gradle were kind of slow. So, if I just go and I run help with Gradel spends a lot of time configuring, I wasn't really sure what was going on with that. But, you know, before we can even get help, it's not building anything and it takes like 13 seconds.

  2. So, I found out that Gradel has this option. If you give it scan and you run it, it'll take a long time. But what it will do is it does a bunch of profiling of itself and then sends you to a web page um where it uploads all that information. You can go browse around it. So this is what it kind of looks like and you can see here's our 12 second build time.

  3. Yeah, I don't think I'm seeing the screen. I'm forgot to share the screen. I just unmuted myself, but I didn't share the screen. Let me try this again. Um, screen number one. All right, cool. Well, starting over again. So, I ran gradal here and I ran gradal help and it took 13 seconds and I was like, why is it doing that?

  4. So, I ran scan. This is the extra option you can give it and it will produce this web page that it sends you to and it gives you all sorts of information about all the tasks that it ran and you can do 12 second build time and you can explore performance and here we see that it's spending 11 seconds in configuration.

  5. So I went over to configuration and we've got this plugin which is the services cotlin conventions and so this is and so then I kind of like looked in our code and this is a thing that we set up for to make sure that all of our tasks and projects have the same information. I looked into it and this is and the slowness was basically fetching out um our AWS credentials to get our extra to get data from our repository or get packages from our repository.

  6. So I made a little file to cache that. And now if I check out my new branch uh gradal build speeds and I do gradal help. The first time has to rebuild some things and it takes a little bit of time. Um and then after that it's super fast. It's like less than a second. So that just is all time just straight off the top of any you know builds that people are doing in their dev workflows.

  7. So that was, you know, scratching my own itch and hopefully that helps out other people. That's me.