Skip to content

Improve performance of LanguagePrimitives.TryConvertTo #7420

Closed

Description

LanguagePrimitives.TryConvertTo is implemented by wrapping LanguagePrimitives.ConvertTo in exception handling, and return false if it failed.

This can be improved upon by using the ConversionData return from FigureConversion by checking if the Rank is ConversionRank.None before we try to call the conversion.

By doing an early exit, return we avoid the exceptions that are always thrown when there are no available conversions.

Activity

  1. added
    Issue-Enhancement
    WG-Engine-Performance
    on Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-EnhancementResolution-FixedWG-Engine-Performance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions