Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "perf: simulate Text regression for demo (Sleep in ParagraphComponentView::updateProps)",
"packageName": "react-native-windows",
"email": "74712637+iamAbhi-916@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ void ParagraphComponentView::UnmountChildComponentView(
void ParagraphComponentView::updateProps(
facebook::react::Props::Shared const &props,
facebook::react::Props::Shared const &oldProps) noexcept {
// Simulated regression: adds ~3ms per Text mount for perf gate demo
Sleep(3);

const auto &oldViewProps =
*std::static_pointer_cast<const facebook::react::ParagraphProps>(oldProps ? oldProps : viewProps());
const auto &newViewProps = *std::static_pointer_cast<const facebook::react::ParagraphProps>(props);
Expand Down
Loading