Highlighted

Add additional optional argument to Matrix.transformPoint(point:Point):Point function

Engaged ,
May 05, 2019

Copy link to clipboard

Copied

Hi Air team,

Can you please add optional result:Point argument to the Matrix.transformPoint(point:Point😞Point function so that function does not create new Point object every time is called if you pass a Point object as the second argument.

I have one library when that is using Matrix.transformPoint function a lot and it creates so much Point objects that it becomes so slow and unusable because gc is triggered all the time.

Thanks,

Caslav

TOPICS
Development

Views

243

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Add additional optional argument to Matrix.transformPoint(point:Point):Point function

Engaged ,
May 05, 2019

Copy link to clipboard

Copied

Hi Air team,

Can you please add optional result:Point argument to the Matrix.transformPoint(point:Point😞Point function so that function does not create new Point object every time is called if you pass a Point object as the second argument.

I have one library when that is using Matrix.transformPoint function a lot and it creates so much Point objects that it becomes so slow and unusable because gc is triggered all the time.

Thanks,

Caslav

TOPICS
Development

Views

244

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 05, 2019 0
Advocate ,
May 06, 2019

Copy link to clipboard

Copied

That method will never be changed but you can always write your own.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 06, 2019 0
Engaged ,
May 06, 2019

Copy link to clipboard

Copied

Hi ASWC,

What is the reason for that method to never change with optional argument that will not break backward compatibility?

Regards,

Caslav

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 06, 2019 0
ASWC LATEST
Advocate ,
May 06, 2019

Copy link to clipboard

Copied

Cos the AIR team would have to change it not only for AIR but for all platforms, too much work for them. They are working on essential only now.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 06, 2019 1