WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Optimize option chaining #7457

@cknitt

Description

@cknitt

There is currently a performance penalty due to the extra function call when using Option.map/flatMap/forEach instead of a switch statement.

The compiler could optimize/inline these calls. (Same for Null/Nullable actually, but less important IMHO as Option is more widely used.)

Metadata

Metadata

Assignees

Projects

Status

Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions