mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 17:59:50 +02:00
refactor(struct): 10% performance improvement
This commit is contained in:
parent
fa8d251bf2
commit
ff708def46
9 changed files with 176 additions and 234 deletions
|
@ -20,6 +20,11 @@ export abstract class StructFieldValue<
|
|||
/** Gets the associated `Struct` instance */
|
||||
public readonly struct: StructValue;
|
||||
|
||||
public get hasCustomAccessors(): boolean {
|
||||
return this.get !== StructFieldValue.prototype.get ||
|
||||
this.set !== StructFieldValue.prototype.set;
|
||||
}
|
||||
|
||||
protected value: TDefinition['TValue'];
|
||||
|
||||
public constructor(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue