mirror of
https://github.com/tufanbarisyildirim/gonginx.git
synced 2026-04-27 00:35:51 +03:00
[GH-ISSUE #73] slow dumper.DumpLuaBlock #31
Labels
No labels
bug
enhancement
good first issue
pull-request
question
v2
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gonginx#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gtors on GitHub (Dec 12, 2025).
Original GitHub issue: https://github.com/tufanbarisyildirim/gonginx/issues/73
dumper.DumpLuaBlocktakes ~200 ms for just 2 lines of Lua — the bottleneck is the formatter.Could formatting be optional? For example:
WithLuaFormatting(false)(defaulttrue), orWithLuaFormatter(customFormatter)to allow plugging in a faster/no-op implementation.@gtors commented on GitHub (Dec 12, 2025):
Fix it locally by replacing package in
go.modContent of
./luaformatter_stub/formatter/formatter.go:@tufanbarisyildirim commented on GitHub (Feb 20, 2026):
Implemented in #77: Lua formatting is now optional (
WithLuaFormatting(false)) and pluggable viaWithLuaFormatter(...).