mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
e1e94271c475b1d62c1e5fb6f4273d107311644f
* Implement Blockly.Events.filter in linear time For large App Inventor projects (order 1k+ blocks, 100+ top-level blocks), the O(n^2) behavior of Blockly.Event.filter was causing performance issues when rearranging blocks or pasting from the backpack. This commit provides a linear merge implementation using a key that uniquely identifies a block so that multiple events targeting the same block are merged. This change benefits from O(1) amortized lookup using an object as a key-value store. * Add event filter unit tests and fix logic bugs * Update Blockly.Events.filter unit tests
Blockly 
Google's Blockly is a web-based, visual programming editor. Users can drag blocks together to build programs. All code is free and open source.
The project page is https://developers.google.com/blockly/
Blockly has an active developer forum. Please drop by and say hello. Show us your prototypes early; collectively we have a lot of experience and can offer hints which will save you time.
Help us focus our development efforts by telling us what you are doing with Blockly. The questionnaire only takes a few minutes and will help us better support the Blockly community.
Want to contribute? Great! First, read our guidelines for contributors.
Description
Languages
TypeScript
51.3%
JavaScript
40.6%
Python
2.1%
HTML
1.8%
PHP
1.5%
Other
2.7%
