We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f76bca2 commit 1538b0dCopy full SHA for 1538b0d
1 file changed
packages/core/src/attributes.ts
@@ -135,7 +135,6 @@ export function estimateTypedAttributesSizeInBytes(attributes: Attributes | unde
135
return 0;
136
}
137
let weight = 0;
138
- const fallbackWeight = 100;
139
140
for (const [key, attr] of Object.entries(attributes)) {
141
weight += key.length * 2;
@@ -151,7 +150,7 @@ export function estimateTypedAttributesSizeInBytes(attributes: Attributes | unde
151
150
weight += estimatePrimitiveSizeInBytes(val);
152
} else {
153
// default fallback for anything else (objects)
154
- weight += fallbackWeight;
+ weight += 100;
155
156
157
return weight;
0 commit comments