Comments (6)
The likely change from alpha to beta that would cause this is parsing the language files. Removing some of them speeds up system start.
Parsing clearly needs improvement.
from scratch.
Consider
- ScratchFrameMorph>languageMenu:
- ScratchTranslator>importLanguagesList
- ScratchFrameMorph processSettingsFiles
from scratch.
Reading the 50 files in the relevant directory is taking 27 seconds on my Pi.
Profiling shows that all of it is involved in text conversion - or more accurately checking to see if conversion is needed and processing all that - and we just don't need to do it.
By using a non-converting file stream instead and only converting the small string that needs handling we get the time taken down to 160mS - a mind boggling 160 times faster.
from scratch.
There's another several seconds of startup time to attack, but shaving off 27 seconds is a good start.
from scratch.
Cut about 2secs off startup by avoiding changing language when you don't need to. Only helpful to English users but still worth a line of code.
Make the opening of the language menu almost instant.
Still need to make the menu fit in the screen height.
from scratch.
opened #24 for the menu length issues. Close this one.
from scratch.
Related Issues (20)
- gpioserver spi bus shutdown fails HOT 2
- shift-click on label StringMorphs causes failed attempt to open 'mini editor' HOT 2
- Gradient fill in painter can cause divide by zero error HOT 2
- Pibrella add-on not working correctly for 20160915 release HOT 8
- 20160915 release keypress tracking for key state blocks is not working HOT 6
- "stop all sounds" is not working HOT 4
- NuScratch20160915 does not detect /dev/ttyAMA0 (GPIO) as a sensor board HOT 4
- Instructions error in Examples HOT 5
- 2016-09-15 key presses not being captured reliably HOT 3
- script, context menu allows text input HOT 3
- 2016-10-21, drag variable on stage shows black edges HOT 5
- hello, improvement request
- starting scratch as a user different from "root" or "pi"
- loop without screen refresh needed
- Is this supposed to happen? HOT 1
- Scratch not working; red crosses appearing all over text HOT 2
- Single script block not working HOT 3
- Error in presentation mode HOT 1
- Echoey Audio
- Stage Rotation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scratch.