当前位置:网站首页>Performance optimization - rigorous mode
Performance optimization - rigorous mode
2022-07-02 22:51:00 【Why do you love learning so much】
StrictMode It's a development tool , It can detect what we might do unintentionally , And remind us of them , So that we can fix them .
StrictMode Most commonly used to capture unexpected disk or network access on the main thread of an application . Help us keep disk and network operations away from the main thread , Can make the application smoother 、 More responsive .

give an example : For example, the rigorous mode is turned on , Do it in the main thread IO Time consuming operation :
If you add penaltyLog Violation log printing , The error main thread will be IO Print out the operation .
If you add penaltyDeath Violation crash , Will print out the crash information .
This is used to remind developers , Code violations are unreasonable , Need to fix .
边栏推荐
- 附加:【登录信息存储】与【登录状态校验】;(包括:总结了到目前为止,有关【登录信息存储】与【登录状态校验】的所有内容;)
- Build your own website (22)
- [QT] QT multithreading development - four methods to realize multithreading design
- #include errors detected. Please update your includePath.
- Developers share | HLS and skillfully use Axi_ Customize the master bus interface instructions and improve the data bandwidth - area exchange speed
- Perceptron model and Application
- kubernetes 使用主机名将 pod 分配在指定节点上
- NC24325 [USACO 2012 Mar S]Flowerpot
- 小鹏P7出事故,安全气囊未弹出,这正常吗?
- DTM distributed transaction manager PHP collaboration client V0.1 beta release!!!
猜你喜欢

It's not easy to say I love you | use the minimum web API to upload files (swagger support) # yyds dry inventory #

Leetcode circular linked list (fast and slow pointer) code line by line interpretation
![NC24325 [USACO 2012 Mar S]Flowerpot](/img/cf/86acbcb524b3af0999ce887c877781.png)
NC24325 [USACO 2012 Mar S]Flowerpot

分享 10 个 JS 闭包面试题(图解),进来看看你能答对多少

E-commerce system microservice architecture

大话云原生之负载均衡篇-小饭馆客流量变大了

UE4 game architecture learning notes
![[LeetCode] 反转字符串中的单词 III【557】](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[LeetCode] 反转字符串中的单词 III【557】
![[foreign journal] sleep and weight loss](/img/81/42dcfae19e72a0bc761cb7a40fe5d5.jpg)
[foreign journal] sleep and weight loss

PMP项目整合管理
随机推荐
数学建模——图与网络模型及方法(一)
NC24325 [USACO 2012 Mar S]Flowerpot
Simpleitk use - 4 Strange question
原生js添加样式的方法
JS获取display为none的隐藏元素的宽度和高度的解决方案
Oracle-PL/SQL编程
PHP微信抢红包的算法
Task and privilege level protection
#include errors detected. Please update your includePath.
图形视图框架
Market Research - current situation and future development trend of cell-based seafood market
Baidu AI Cloud - create a face recognition application
杰理之样机在多次触摸后会触发关机【篇】
go 条件变量
How should programmers write logs
佩服,竟然有人把高等数学这么晦涩难懂的科目,讲解得如此通俗易懂
杰理之修改不需要长按开机功能【篇】
牛客网:龙与地下城游戏
任务和特权级保护
Wait to solve the zombie process