)]}'
{
  "commit": "570d478cd552a514647a704b353370e294868658",
  "tree": "359e44ea8f0dcd4693b4d526bb8419a752048cf0",
  "parents": [
    "02b9d897433cee3f85e1a83526b6f6b362df3921"
  ],
  "author": {
    "name": "Chris Kennelly CA",
    "email": "ckennelly@google.com",
    "time": "Sun Sep 27 21:10:19 2026 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Sun Oct 25 10:07:16 2026 -0700"
  },
  "message": "Optimize absl/flags registration, default validation, and FlagSaver.\n\n1. Pass `flag_.impl_.filename_ \u003d\u003d filename ? nullptr : filename` from\n   `FlagRegistrar` to `RegisterCommandLineFlag` so `FlagImpl` skips calling\n   `GetUsageConfig().normalize_filename` (which acquires `custom_config_guard`\n   twice, copies 10 `std::function` objects, and allocates/frees 2\n   `std::string`s per `ABSL_FLAG` at startup) when the filename pointer is\n   already set in the `constexpr` constructor.\n2. Remove the duplicate `ValidateDefaultValuesOfUnspecifiedFlags()` pass in\n   `ParseAbseilFlagsOnlyImpl`, replace the 13-type `FastTypeId(op)` check in\n   `ShouldValidateFlagValue` with direct `op \u003d\u003d \u0026FlagOps\u003cT\u003e` pointer equality,\n   consolidate `DefaultValue()` and `MakeInitValue()` in\n   `FlagImpl::CheckDefaultValueParsingRoundtrip()` under a single lock and\n   allocation, and add lock-free `seq_lock_.IsUnmodified()` fast paths to\n   `FlagImpl::IsModified()` and `IsSpecifiedOnCommandLine()`.\n3. Return `nullptr` from `FlagImpl::SaveState()` when `CanSkipInitOnSave()` and\n   restore via `RestoreToInitialState()` (preserving the initial\n   `FlagDefaultSrc` alongside `SET_FLAGS_DEFAULT` values in `DynamicDefault` and\n   matching saved handles linearly in `FlagSaverImpl`), eliminating ~10,000\n   `FlagState` heap allocations/deletions per `FlagSaver` scope.\n\nPiperOrigin-RevId: 989386174\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4140230651aa5c4ad8a457b1dee77501a176aeac",
      "old_mode": 33188,
      "old_path": "absl/flags/commandlineflag.cc",
      "new_id": "3b3b7859c766799b867776028dcb7f236c7ebb0b",
      "new_mode": 33188,
      "new_path": "absl/flags/commandlineflag.cc"
    },
    {
      "type": "modify",
      "old_id": "9336d6d4a08834041905e4abb7f19c0061b6f010",
      "old_mode": 33188,
      "old_path": "absl/flags/commandlineflag.h",
      "new_id": "aab7daca65e385b2f3f2a0923b186853ec80659b",
      "new_mode": 33188,
      "new_path": "absl/flags/commandlineflag.h"
    },
    {
      "type": "modify",
      "old_id": "b6d01b2ac58b9cdee67c922a3a1e0c7942511986",
      "old_mode": 33188,
      "old_path": "absl/flags/commandlineflag_test.cc",
      "new_id": "ded66fbb02f5015c64dc6aa6e6856943a33e6468",
      "new_mode": 33188,
      "new_path": "absl/flags/commandlineflag_test.cc"
    },
    {
      "type": "modify",
      "old_id": "662b342bb76fe095a827d55ffb419218e29163dc",
      "old_mode": 33188,
      "old_path": "absl/flags/internal/flag.cc",
      "new_id": "9d4a8d9a3fdad496f2b9229d6578bf75d09a3465",
      "new_mode": 33188,
      "new_path": "absl/flags/internal/flag.cc"
    },
    {
      "type": "modify",
      "old_id": "8baff43f8ddce530c6085441ebc040658e268fc3",
      "old_mode": 33188,
      "old_path": "absl/flags/internal/flag.h",
      "new_id": "f625456eb1db32ce2a608ec594119bb4ebb512c7",
      "new_mode": 33188,
      "new_path": "absl/flags/internal/flag.h"
    },
    {
      "type": "modify",
      "old_id": "610d1ffdf7f717ac58d24e23d0406ac1d9f833f8",
      "old_mode": 33188,
      "old_path": "absl/flags/internal/private_handle_accessor.cc",
      "new_id": "145b1b40e7130e15cf2a60791410bac2f0e03d56",
      "new_mode": 33188,
      "new_path": "absl/flags/internal/private_handle_accessor.cc"
    },
    {
      "type": "modify",
      "old_id": "bf4154c5a5b568f9230d025aad0b4c7ba7e7f2c5",
      "old_mode": 33188,
      "old_path": "absl/flags/internal/private_handle_accessor.h",
      "new_id": "fedf7507fcd618671c71edefad93554c50898940",
      "new_mode": 33188,
      "new_path": "absl/flags/internal/private_handle_accessor.h"
    },
    {
      "type": "modify",
      "old_id": "940bf565c459131ada91ea8978ee3477f8ecbe10",
      "old_mode": 33188,
      "old_path": "absl/flags/parse.cc",
      "new_id": "9b9502ddc59b76754c056f7db7766a9f2354a3b1",
      "new_mode": 33188,
      "new_path": "absl/flags/parse.cc"
    },
    {
      "type": "modify",
      "old_id": "13f210c810130d7e81ffc7594195cb2495013959",
      "old_mode": 33188,
      "old_path": "absl/flags/reflection.cc",
      "new_id": "d8303dbab412ab9379eb9f6f7e6f230611970ffa",
      "new_mode": 33188,
      "new_path": "absl/flags/reflection.cc"
    }
  ]
}
