Commit e67f581
Remove MetaDataMetrics class and all references to eliminate unnecessary performance overhead
The MetaDataMetrics class provided detailed performance tracking for metadata operations but added significant overhead:
- Memory overhead: Every MetaData, MetaObject, MetaField, and MetaAttribute instance created its own MetaDataMetrics
- CPU overhead: Atomic operations on every tracked operation (validation, child operations, etc.)
- Thread synchronization cost: Multiple atomic variables per instance caused memory barriers
- Code complexity: 300+ lines of metrics collection requiring maintenance
For a metadata framework designed to be incredibly fast, this collection overhead outweighed any monitoring benefit.
Changes:
- Deleted metadata/src/main/java/com/draagon/meta/metrics/MetaDataMetrics.java (307 lines)
- Removed all imports and field declarations across 4 classes
- Removed all metrics recording calls from validation, child operations, and property changes
- Verified compilation and all tests pass
Total reduction: 441 lines of code removed
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 5e5149c commit e67f581
5 files changed
Lines changed: 0 additions & 441 deletions
File tree
- metadata/src/main/java/com/draagon/meta
- attr
- field
- metrics
- object
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
41 | | - | |
42 | 39 | | |
43 | 40 | | |
44 | 41 | | |
| |||
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 77 | | |
84 | 78 | | |
85 | 79 | | |
| |||
132 | 126 | | |
133 | 127 | | |
134 | 128 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | 129 | | |
139 | 130 | | |
140 | 131 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | 132 | | |
146 | 133 | | |
147 | 134 | | |
| |||
269 | 256 | | |
270 | 257 | | |
271 | 258 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | 259 | | |
288 | 260 | | |
289 | 261 | | |
| |||
723 | 695 | | |
724 | 696 | | |
725 | 697 | | |
726 | | - | |
727 | | - | |
728 | 698 | | |
729 | 699 | | |
730 | 700 | | |
| |||
738 | 708 | | |
739 | 709 | | |
740 | 710 | | |
741 | | - | |
742 | | - | |
743 | 711 | | |
744 | 712 | | |
745 | 713 | | |
| |||
755 | 723 | | |
756 | 724 | | |
757 | 725 | | |
758 | | - | |
759 | | - | |
760 | 726 | | |
761 | 727 | | |
762 | 728 | | |
| |||
774 | 740 | | |
775 | 741 | | |
776 | 742 | | |
777 | | - | |
778 | | - | |
779 | 743 | | |
780 | 744 | | |
781 | 745 | | |
| |||
983 | 947 | | |
984 | 948 | | |
985 | 949 | | |
986 | | - | |
987 | | - | |
988 | 950 | | |
989 | 951 | | |
990 | 952 | | |
| |||
1003 | 965 | | |
1004 | 966 | | |
1005 | 967 | | |
1006 | | - | |
1007 | | - | |
1008 | 968 | | |
1009 | 969 | | |
1010 | 970 | | |
| |||
Lines changed: 0 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
33 | | - | |
34 | 31 | | |
35 | 32 | | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
40 | 37 | | |
41 | | - | |
42 | | - | |
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
| |||
83 | 78 | | |
84 | 79 | | |
85 | 80 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | 81 | | |
100 | 82 | | |
101 | 83 | | |
| |||
106 | 88 | | |
107 | 89 | | |
108 | 90 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | 91 | | |
113 | 92 | | |
114 | 93 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 94 | | |
120 | 95 | | |
121 | 96 | | |
| |||
238 | 213 | | |
239 | 214 | | |
240 | 215 | | |
241 | | - | |
242 | | - | |
243 | 216 | | |
244 | 217 | | |
245 | 218 | | |
| |||
282 | 255 | | |
283 | 256 | | |
284 | 257 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | 258 | | |
289 | 259 | | |
290 | 260 | | |
291 | 261 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | 262 | | |
296 | 263 | | |
297 | 264 | | |
| |||
Lines changed: 0 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
53 | | - | |
54 | 51 | | |
55 | 52 | | |
56 | 53 | | |
| |||
62 | 59 | | |
63 | 60 | | |
64 | 61 | | |
65 | | - | |
66 | | - | |
67 | 62 | | |
68 | 63 | | |
69 | 64 | | |
| |||
173 | 168 | | |
174 | 169 | | |
175 | 170 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | 171 | | |
190 | 172 | | |
191 | 173 | | |
| |||
196 | 178 | | |
197 | 179 | | |
198 | 180 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | 181 | | |
203 | 182 | | |
204 | 183 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | 184 | | |
210 | 185 | | |
211 | 186 | | |
| |||
329 | 304 | | |
330 | 305 | | |
331 | 306 | | |
332 | | - | |
333 | | - | |
334 | 307 | | |
335 | 308 | | |
336 | 309 | | |
337 | 310 | | |
338 | | - | |
339 | | - | |
340 | 311 | | |
341 | 312 | | |
342 | 313 | | |
| |||
0 commit comments