Don't store line pragmas in release builds
Open
Area-Razor
Area-Razor-Compiler
- Dominant language
- C#
- Stars
- 20.7k
- Forks
- 4.3k
- PR merge metrics
- PR metrics pending
Description
Some low hanging fruit for memory usage, the compiler currently produces and stores line pragma information as part of a `RazorCodeDocument`, but the information is only used in tests. Even just simply putting `#if DEBUG` around all of it would be a small, but easy, win.
Contributor guide
Research direction
Locate RazorCodeDocument and its line pragma storage, then trace the tests that consume that information and compare Debug versus release builds. Done means release builds no longer retain the data while the relevant tests still pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- compilers
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100