Skip to content

Commit

Permalink
perf(platform): use requestIdleCallback to exec getReleaseData, selec…
Browse files Browse the repository at this point in the history
…tAllUIControls, selectEditorWholeAndEngineWholePackages tasks
  • Loading branch information
yyc-git committed Dec 24, 2023
1 parent 9af3b87 commit 7a3a02d
Show file tree
Hide file tree
Showing 29 changed files with 333 additions and 1,651 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ var length = Belt_List.length;

var head = Belt_List.head;

var tail = Belt_List.tail;

var nth = Belt_List.get;

var reverse = Belt_List.reverse;
Expand Down Expand Up @@ -201,6 +203,7 @@ export {
filter ,
length ,
head ,
tail ,
nth ,
getLast ,
removeDuplicateItemsU ,
Expand Down
3 changes: 3 additions & 0 deletions defaults/meta3d-commonlib/lib/js/src/structure/ListSt.bs.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ var length = Belt_List.length;

var head = Belt_List.head;

var tail = Belt_List.tail;

var nth = Belt_List.get;

var reverse = Belt_List.reverse;
Expand Down Expand Up @@ -200,6 +202,7 @@ exports.remove = remove;
exports.filter = filter;
exports.length = length;
exports.head = head;
exports.tail = tail;
exports.nth = nth;
exports.getLast = getLast;
exports.removeDuplicateItemsU = removeDuplicateItemsU;
Expand Down
2 changes: 2 additions & 0 deletions defaults/meta3d-commonlib/src/structure/ListSt.res
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ let length = Belt.List.length

let head = Belt.List.head

let tail = Belt.List.tail

let nth = Belt.List.get

let getLast = list => list->nth(length(list) - 1)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 7a3a02d

Please sign in to comment.