iammerlijn online

My first OSS contribution

My first open-source contribution was a small performance fix in Strapi.

While investigating startup performance in one of our applications, I found that Strapi was recalculating the same nested field list over and over again while cleaning field-level permissions. With many roles pointing at the same large content type, that repeated work added up quickly.

The fix was simple: cache the nested field traversal by subject during the permission cleanup pass. Same behavior, much less repeated work.

The change was merged into Strapi in strapi/strapi#27438.

I wrote up the details here: Optimizing Strapi permission cleanup with cached field traversal.