Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use common static values for Vector2/Vector3/CFrame #233

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

use common static values for Vector2/Vector3/CFrame #233

wants to merge 6 commits into from

Conversation

Baileyeatspizza
Copy link
Contributor

in a recent release note
Screenshot 2021-12-10 at 20 21 32

this pull request basically just replaces any instances where those static methods can be used over constructing a new datatype

here's a benchmark of the performance gains of using Vector3.zero instead of Vector3.new(...)
image
benchmarked on an Apple M1

@Quenty
Copy link
Owner

Quenty commented Dec 10, 2021

Looks great. We'll need to update luacheck to make this happen. And probably update selene too. And then we'll also want to update main.

@Baileyeatspizza Baileyeatspizza changed the base branch from version2 to main December 10, 2021 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants