go-esi icon indicating copy to clipboard operation
go-esi copied to clipboard

Feature request: parallel processing of esi tags

Open p0358 opened this issue 5 months ago • 1 comments

If I'm reading the code correctly, right now all the esi tags are parsed and processed sequentially. This means that if there are 5 esi:includes each taking 50 ms, it'd add up to 250 ms instead of potentially only taking 50 ms if they were all requested at once.

A remedy to this would be to first parse the input, then process all found tags all at once, and only then insert the results in tags' place in the body to be returned.

p0358 avatar Jan 27 '24 03:01 p0358