Skip to content

Optimize boxPrimitiveArray method#136

Merged
sovdeeth merged 1 commit intoSkriptLang:2.xfrom
zimzaza4:2.x
Apr 8, 2025
Merged

Optimize boxPrimitiveArray method#136
sovdeeth merged 1 commit intoSkriptLang:2.xfrom
zimzaza4:2.x

Conversation

@zimzaza4
Copy link
Contributor

@zimzaza4 zimzaza4 commented Apr 8, 2025

In case the array is very large, the Array.get method will be extremely slow (e.g. call Files.readAllBytes(path)), this PR modifies the original reflection way of copying arrays to improve the speed.

@sovdeeth sovdeeth added the enhancement New feature or request label Apr 8, 2025
@sovdeeth sovdeeth merged commit fc62c54 into SkriptLang:2.x Apr 8, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments