Enable Link-Time Optimization (LTO) and evaluate other optimizations for TensorBoard

Abierto
#6,881 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
rust

Línea de trabajo

Lee primero docs/design/rustboard.md y tensorboard/data/server/Cargo.toml. Comprueba cómo están configurados los perfiles de release y, después, evalúa el cambio propuesto de LTO solo para release y la evaluación sugerida de PGO o LLVM BOLT; se considera terminado cuando se haya seleccionado el enfoque de optimización y se haya evaluado su impacto en el rendimiento o el tamaño del binario.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Hi!

Recently I read the design document about some design choices and performance-oriented questions. I want to suggest several optimization techniques that can improve the project performance further.

I noticed that in the Cargo.toml file for the Rust part Link-Time Optimization (LTO) is not enabled. I suggest enabling it since it will reduce the binary size (always a good thing to have) and will likely improve the application's performance.

I suggest enabling LTO only for the Release builds to not sacrifice the developers' experience during the working on the project since LTO consumes an additional amount of time to finish the compilation routine. If you think that a regular Release build should not be affected by such a change as well, then I suggest adding an additional release-lto profile where additionally to regular release optimizations LTO also will be added. Such a change simplifies life for maintainers and others interested in the project persons who want to build the most performant version of the application.

After applying LTO I can suggest evaluating other optimization options like evaluating Profile-Guided Optimization (PGO) (more materials and benchmarks are available at my repo: https://github.com/zamazan4ik/awesome-pgo) and Post-Link Optimization (PLO) with tools like LLVM BOLT.

Thank you.

Lenguaje dominante
TypeScript
Estrellas
7.2k
Forks
1.7k
Merge medio
1 d 13 h
PR fusionados (30 d)
3

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de tensorflow/tensorboard

Todos los issues de tensorflow/tensorboard

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.