-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix list objects xml parsing bug and improve perf.
For list-object-versions there was a bug that would return delete markers after all versions of an object. The server response contains the order of versions and delete markers according to recency and the list objects client call should preserve this. This is fixed in this change. XML parsing was using the `take_child` call, that mutates a vector removing an element in it. For a response containing N items, using take_child on item, causes the XML parsing cost to be O(N^2) (so 1 million operations for a 1000 item list) - this change makes the parsing cost linear.
- Loading branch information
Showing
3 changed files
with
247 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.