Comments (3)
I'd like to better understand what memoization does for us here. Mostly every time we add a new block it will have a new ID, I think, making the memoization not really help. I think it should save some CPU for undo/redo but at a cost of quite a bit of keeping XML trees around in memory?
from scratch-vm.
After looking at this more deeply I agree. I think we should pull it.
from scratch-vm.
P.S. I think the introduction of the WebWorker makes us need the htmlparser. Because the XML object passed along by Blockly isn't serializable (? - although I haven't fully investigated this exactly), I passed through the XML string instead whiich is parsed inside the worker using your implementation. The memoize, though, I think we still don't need :)
from scratch-vm.
Related Issues (20)
- Firefox running "game loop" at 22 FPS HOT 2
- `project.json` reference HOT 4
- NFT Collection Extension (Automated Canvas Image Download) HOT 4
- Error Saving Project With `\b` HOT 3
- Is it safe to use hacked and not intended features. HOT 3
- Add JSON blocks HOT 1
- Issue with is-touching Block HOT 1
- npm start => Error: error:0308010C:digital envelope routines::unsupported HOT 2
- How to access the inside of vm in extension HOT 4
- How to display a part of a costume? HOT 2
- [ENA-266] JS TypeError when clicking a procedure in the toolbox
- Convert commonjs to esmodule.
- Onion skining HOT 2
- The hats for my Scratch extension don't work... HOT 3
- Download instead of Hent
- Copying and pasting (⌘C / ⌘V) blocks between sprites can cause local variables to share the same ID. HOT 1
- The link in the GitHub repo sidebar is broken HOT 2
- make a button upload image
- The project.json field in the.sb3 file is missing. After importing the file, the scratch3 environment cannot parse the file and an error is reported when the emitWorkspaceUpdate method is called internally.
- renaming a sprite doesn't update variable monitors for this sprite
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-vm.