# Performance

> Keep WPF windows responsive with TX Text Control: the dispatcher, ServerTextControl on background threads, large documents, memory, conversion and mail merge.

- **Product:** TX Text Control .NET for WPF
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for WPF > Performance
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/llms-full.txt

---

## On This Page

- [The Editor and the Engine Without a Window](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/#the-editor-and-the-engine-without-a-window)
- [Find the Right Page](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/#find-the-right-page)
- [Recommended Order](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/#recommended-order)
- [Related Pages](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/#related-pages)

---

## In This Section

- [Background Operations](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/background-operations/llms.txt): Convert many files on background threads in WPF with ServerTextControl and Parallel.ForEach, with Progress, a cancel button and the limits of threads.
- [Performance Best Practices](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/best-practices/llms.txt): All performance measures for WPF apps with TX Text Control and their effect, DefaultFormattingPrinter in App.xaml.cs and a background Stopwatch test of a merge.
- [Dispatcher and UI Thread Access](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/dispatcher/llms.txt): Which TX Text Control objects belong to the WPF UI thread, how documents cross threads as byte arrays, and CheckAccess and InvokeAsync for the TextControl.
- [Large Documents](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/large-documents/llms.txt): Build long documents for the WPF TextControl in one undo step with Selection objects and ServerTextControl, replace text in large DOCX files, shrink PDFs.
- [Document Loading and Conversion](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/loading-conversion/llms.txt): Speed up loading and conversion in WPF: the TX Text Control format for drafts, quick previews with LoadImages and first-page PDF import, one instance per batch.
- [Mail Merge Performance](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/mail-merge/llms.txt): What MailMerge costs per invoice and merge block, templates that merge faster, WPF merges in the background with progress and cancel, multi-process batches.
- [Memory Usage and Resource Disposal](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/memory-usage/llms.txt): Find undisposed ServerTextControl instances in WPF apps, watch USER and GDI handles, see why the WPF TextControl needs no Dispose, and handle OutOfMemory.

---

## Nearby

- **Previous:** [Secure Application Deployment](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/security/deployment/llms.txt)
- **Next:** [Dispatcher and UI Thread Access](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/performance/dispatcher/llms.txt)
