[PR #521] [MERGED] Random perf improvements #1077

Open
opened 2026-01-29 14:49:24 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/xoofx/markdig/pull/521
Author: @MihaZupan
Created: 3/7/2021
Status: Merged
Merged: 3/10/2021
Merged by: @xoofx

Base: masterHead: random-perf-2


📝 Commits (4)

  • ae25a8f Reduce the size of MarkdownObject by 1 pointer size
  • db1021a Avoid minor allocations in ProcessInlines loop
  • a3ce190 Cache renderers for custom writers
  • 4f9119f Merge master

📊 Changes

6 files changed (+336 additions, -249 deletions)

View changed files

📝 src/Markdig.Tests/TestMarkdigCoreApi.cs (+102 -63)
📝 src/Markdig/Markdown.cs (+54 -50)
📝 src/Markdig/MarkdownPipeline.cs (+54 -17)
📝 src/Markdig/Parsers/MarkdownParser.cs (+18 -31)
📝 src/Markdig/Renderers/TextRendererBase.cs (+8 -3)
📝 src/Markdig/Syntax/MarkdownObject.cs (+100 -85)

📄 Description

Brings over some of the changes from #499:

  • Caching the default pipeline
  • Caching for custom writers
  • Reduced MarkdownObject size
  • Removed most heap allocations from ProcessInlines loop

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/xoofx/markdig/pull/521 **Author:** [@MihaZupan](https://github.com/MihaZupan) **Created:** 3/7/2021 **Status:** ✅ Merged **Merged:** 3/10/2021 **Merged by:** [@xoofx](https://github.com/xoofx) **Base:** `master` ← **Head:** `random-perf-2` --- ### 📝 Commits (4) - [`ae25a8f`](https://github.com/xoofx/markdig/commit/ae25a8f12c6071f72da2e26c0f42d0af07c9e630) Reduce the size of MarkdownObject by 1 pointer size - [`db1021a`](https://github.com/xoofx/markdig/commit/db1021a979de1d5a7b749f4b729f66ed980fefe9) Avoid minor allocations in ProcessInlines loop - [`a3ce190`](https://github.com/xoofx/markdig/commit/a3ce1903c1463349a37dec475b6a412a92c8ca1e) Cache renderers for custom writers - [`4f9119f`](https://github.com/xoofx/markdig/commit/4f9119fc96e53ffe109cdffa09f507f5a2843b87) Merge master ### 📊 Changes **6 files changed** (+336 additions, -249 deletions) <details> <summary>View changed files</summary> 📝 `src/Markdig.Tests/TestMarkdigCoreApi.cs` (+102 -63) 📝 `src/Markdig/Markdown.cs` (+54 -50) 📝 `src/Markdig/MarkdownPipeline.cs` (+54 -17) 📝 `src/Markdig/Parsers/MarkdownParser.cs` (+18 -31) 📝 `src/Markdig/Renderers/TextRendererBase.cs` (+8 -3) 📝 `src/Markdig/Syntax/MarkdownObject.cs` (+100 -85) </details> ### 📄 Description Brings over some of the changes from #499: - Caching the default pipeline - Caching for custom writers - Reduced MarkdownObject size - Removed most heap allocations from ProcessInlines loop --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 14:49:24 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1077