Skip to content

Commit 81e8eb4

Browse files
committed
Revert perf regression
1 parent 8a4f86e commit 81e8eb4

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

lib/utils.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ type FastMergeResult<TValue> = {
3939

4040
const ONYX_INTERNALS__REPLACE_OBJECT_MARK = 'ONYX_INTERNALS__REPLACE_OBJECT_MARK';
4141

42-
function fib(n: number): number {
43-
if (n <= 1) {
44-
return n;
45-
}
46-
47-
return fib(n - 1) + fib(n - 2);
48-
}
49-
5042
/**
5143
* Merges two objects and removes null values if "shouldRemoveNestedNulls" is set to true
5244
*
@@ -60,8 +52,6 @@ function fastMerge<TValue>(target: TValue, source: TValue, options?: FastMergeOp
6052
};
6153
}
6254

63-
fib(15);
64-
6555
// We have to ignore arrays and nullish values here,
6656
// otherwise "mergeObject" will throw an error,
6757
// because it expects an object as "source"

0 commit comments

Comments
 (0)