as3-signals
as3-signals copied to clipboard
Convert internal Arrays to Vectors for better performance
This PR converts internal Array usage to Vector for improved performance while maintaining backward compatibility.
Changes
-
Changed internal storage from Array to Vector:
-
Vector.<Class>for_valueClassesinMonoSignalandOnceSignal -
Vector.<Object>for_paramsinSlot - Updated
NativeMappedSignalto properly handle Vectors
-
-
Maintained backward compatibility:
- All public methods still accept and return Arrays
- Added conversion functions between Arrays and Vectors
- Added null checks for Vectors to ensure stability
- No changes to public interfaces (
ISignal,IOnceSignal)
Benefits
- Better performance: Vectors are more efficient than Arrays for typed collections
-
Type safety:
Vector.<Class>provides compile-time type checking - Identical API: All existing code using the library will continue to work
This addresses the request to use the more efficient Vector.<> type internally instead of Arrays, while keeping backward compatibility with existing code.
Fixes #66.
[!WARNING]
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
archive.apache.org
- Triggering command:
wget -q REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
- Configure Actions setup steps to set up my environment, which run before the firewall is enabled
- Add the appropriate URLs or hosts to my firewall allow list
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.