You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ObjectPoolLinter.Package/ObjectPoolLinter.Package.csproj
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
10
10
<PropertyGroup>
11
11
<PackageId>ObjectPoolLinter</PackageId>
12
-
<Version>0.9.5</Version>
12
+
<Version>1.0.0</Version>
13
13
<Authors>Joe Zhuo</Authors>
14
14
<Copyright>Copyright (c) 2026 Joe Zhuo</Copyright>
15
15
<Description>Roslyn analyzer for Unity C# that flags object allocations in hot paths and offers code fixes that route them through an object pool, minimizing GC and frame hitches.</Description>
Copy file name to clipboardExpand all lines: src/ObjectPoolLinter/ObjectPoolAnalyzer.cs
+9-12Lines changed: 9 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ public sealed class ObjectPoolAnalyzer : DiagnosticAnalyzer
15
15
16
16
privateconststringCategory="Performance";
17
17
privatestaticreadonlyLocalizableStringTitle="Object allocation in hot path";
18
-
privatestaticreadonlyLocalizableStringMessageFormat="'{1}' is allocated inside the frequently-called method '{0}'. Consider using an object pool to avoid per-frame allocations.";
18
+
privatestaticreadonlyLocalizableStringMessageFormat="'{0}' allocates inside the frequently-called method '{1}'. Consider using an object pool to avoid per-frame allocations.";
19
19
privatestaticreadonlyLocalizableStringDescription="Allocating objects inside frequently-invoked Unity methods (such as Update) causes garbage collection pressure and frame hitches. Reuse instances via an object pool instead.";
20
20
21
21
// Points at the default branch rather than a tag: a shipped analyzer keeps linking to the
0 commit comments