Skip to content

2.25.1.0-b25

@hari90 hari90 tagged this 14 Dec 18:27
Summary:
Yb tools like yb-admin, Yb-ts-cli link the Tserver library which includes all of postgres. This is unnecessary and leads to longer process link times, adds 800 unnecessary gFlags, and bloats our dependency chains.

This change remove the unnecessary libs.

Gflag count and process startup time on m1 mac
Before:
```
time ybadmin --help | grep type:  | wc -l
    1247
real    0m3.340s
```

After:
```
time ./build/latest/bin/yb-admin --help | grep type:  | wc -l
     445
real    0m1.655s
```

Fixes #25304
Jira: DB-14502

Test Plan:
Jenkins

 ./build-support/dependency_graph --build-root /net/dev-server-hsunder/share/code/yugabyte-db/build/debug-clang17-dynamic-ninja self-test --rebuild-graph

```

----------------------------------------------------------------------
Ran 8 tests in 7.499s

OK
```

Reviewers: slingam, jhe

Reviewed By: jhe

Subscribers: ybase

Differential Revision: https://phorge.dev.yugabyte.com/D40683
Assets 2
Loading