Improve perf of the interactive window UI
See original GitHub issueSee info here: https://reactjs.org/docs/optimizing-performance.html
Run something like this:
#%%
import tensorflow as tf
mnist = tf.keras.datasets.mnist
(x_train, y_train),(x_test, y_test) = mnist.load_data()
x_train, x_test = x_train / 255.0, x_test / 255.0
model = tf.keras.models.Sequential([
tf.keras.layers.Flatten(input_shape=(28, 28)),
tf.keras.layers.Dense(512, activation=tf.nn.relu),
tf.keras.layers.Dropout(0.2),
tf.keras.layers.Dense(10, activation=tf.nn.softmax)
])
model.compile(optimizer='adam',
loss='sparse_categorical_crossentropy',
metrics=['accuracy'])
model.fit(x_train, y_train, epochs=1000)
model.evaluate(x_test, y_test)
And eventually we slow down so much it’s unusable.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:11 (7 by maintainers)
Top Results From Across the Web
How do I make the windows ui/gui faster? - Microsoft Community
Go to Control Panel > Large icon view > System > Advanced System settings > Advanced tab > Performance > Settings. You should...
Read more >Want to Improve UI Performance? Start by Understanding ...
Our focus was to improve the UI performance. This included a mix of improvements that affected load time, perceived load time, ...
Read more >35 quick tips to improve web performance | by João Cunha
Following Optimistic UI, remove intermediate states: skip load and go straight to success. ⚡️Tip #15: PRPL. Follow the PRPL pattern: Push critical resources ......
Read more >13 Tweaks You Can Make to Boost Windows 10 Performance
13 Tweaks You Can Make to Boost Windows 10 Performance · #1. Optimize power plan settings for max performance · #2. Disable startup...
Read more >Interactive UI slows to a halt over time · Issue #1304 - GitHub
When I initially starts Python Interactive windows and run code through VSCode editor like the following, everything is very fast. image.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This probably has a separate cause unrelated to React but it still strongly impacts interactive window performance: I’ve noticed that on sessions which create very large variables (like learning histories/traces of ML models) executing even simple cells in the presence of such variables becomes unusably slow just as described here.
Not sure if VSCode Python can do anything about that but I thought I’d mention it.
Thanks. The insider build works pretty well.