GotenbergSharpApiClient icon indicating copy to clipboard operation
GotenbergSharpApiClient copied to clipboard

Noticeable Performance Regression Between 2.5 -> 2.8

Open svengeance opened this issue 8 months ago • 1 comments

After I upgraded (specifically to capture the new supported file extensions), I noticed that the same conversions are now taking much longer. One of my integration tests, a 13MB power point file, went from 8sec to timing out (past 30 seconds).

Sample code:

var builder = await new MergeOfficeBuilder()
	.WithAssets(w => w.AddItem(fileName, fileBytes))
	.SetPdfFormat(PdfFormats.A1b)
	.BuildAsync();

With the upgrade, I only changed PdfFormats to LibrePdfFormats. It makes sense if the upgrade gives us new options or something along those lines, but the default experience without configuring anything else.

Thanks!

svengeance avatar Apr 02 '25 14:04 svengeance

I narrowed this down to the PdfFormat line, where removing that line or setting it to LibrePdfFormats.None returns performance to normal. My guess is that it wasn't working before properly, and now that it's fixed, I'm paying the cost of it 🫠

Might be I convince some folks it's not needed and leave it off.

svengeance avatar Apr 02 '25 15:04 svengeance

Oh gotcha -- yeah I've noticed Libre conversion is very very slow too.

Jaben avatar Sep 25 '25 17:09 Jaben

Closing this for now. Reopen if you discover any additional information that can help with this problem.

Jaben avatar Oct 05 '25 18:10 Jaben