forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch Mac to use time_exploded_posix.cc.
Previously, we would use a CoreFoundation-based version of these functions implemented in time_mac.cc because time_t on Mac was capped at year 2038. However, with 64-bit that is no longer the case and we can just use time_exploded_posix.cc. From UMA sampling profiler data (see bug), we know that the CoreFoundation versions of these functions are slow and currently account for around 80ms cost during startup. After this change is submitted and makes it to Canary, we can see how the POSIX versions of these functions perform - hopefully much faster than the CoreFoundation ones. Some code in net/ had assumptions around the min and max years that are supported on different platforms by these functions. To make that logic a bit cleaner, this CL introduces two constants in time.h specifying the platform-specific limits - so that downstream code like net can use them instead of baking their own assumptions. Some net error codes are changing as a result of this clean up - which can be seen in the updated net tests. BUG=781601 Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.mac:ios-simulator-cronet Change-Id: I2cf030fd4d3ed8da87e41bc8ba3dc3b1b99e8f6d Reviewed-on: https://chromium-review.googlesource.com/754079 Commit-Queue: Alexei Svitkine <asvitkine@chromium.org> Reviewed-by: Matt Mueller <mattm@chromium.org> Reviewed-by: Yuri Wiitala <miu@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org> Cr-Commit-Position: refs/heads/master@{#515062}
- Loading branch information
1 parent
6c4f0cf
commit dcb7897
Showing
9 changed files
with
93 additions
and
62 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
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
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
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
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