Skip to content

Perf Fix for swallowed exception in AppendKeySegment - #2024

Merged
mikepizzo merged 2 commits into
OData:masterfrom
Sreejithpin:ODataException_Fix_Perf
May 1, 2021
Merged

mikepizzo merged 2 commits into
OData:masterfrom
Sreejithpin:ODataException_Fix_Perf

Conversation

@Sreejithpin

Copy link
Copy Markdown
Contributor

Issues

Firing performance issue in case of odata exception being swallowed. Trying to get keys in case we intend to follow without any exception

This pull request fixes issue #xxx.

Description

Briefly describe the changes of this pull request.

Checklist (Uncheck if it is not completed)

  • Test cases added
  • Build and test with one-click build and test script passed

Additional work necessary

If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.

@Sreejithpin
Sreejithpin requested a review from mikepizzo March 17, 2021 21:15
}
}
}
catch (ODataException)

@mikepizzo mikepizzo Mar 24, 2021 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why still catch the exception if we just re-throw it? should just be able to remove the try/catch #Resolved

}

return properties;
return properties.ToArray();

@mikepizzo mikepizzo Mar 24, 2021 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.ToArray()

How is this used? Is it more efficient to return it as a list, rather than copy to an array? #Closed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In other methods the returned key property is accessed, and passed down to other methods as array (in most cases) . Thats the reason we returned it as array


In reply to: 600680945 [](ancestors = 600680945)

@Sreejithpin Sreejithpin changed the title Perf Fix for swallowed exception in AppendKeySegment - Draft Perf Fix for swallowed exception in AppendKeySegment Apr 5, 2021
@Sreejithpin
Sreejithpin marked this pull request as ready for review April 5, 2021 19:45

@mikepizzo mikepizzo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@mikepizzo
mikepizzo merged commit caee76d into OData:master May 1, 2021
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