Skip to content

Some observations from profiling Intralox #212

@KyleAMathews

Description

@KyleAMathews

I was looking at our mutual customer Intralox's site to see if there were some ways we could speed up their Preview/Production builds.

A couple of things I noticed:

  • it seems like you're doing a full fetch on every build — which makes sense as you don't have a delta API. For faster iterating on local development, it'd be nice to have a flag to just use the cache if available and avoiding making any fetches.
  • when handling a webhook it seems like API calls are run sequentially — I see a lot of await calls in https://github.com/Kentico/kontent-gatsby-packages/blob/master/packages/gatsby-source-kontent/src/webhookProcessor.ts — it'd be better to collect the API calls and run them in parallel so they all start/finish at the same time. For Intralox the API calls are taking 2-3 seconds so ideally those would all just take ~500ms or so if done in parallel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions