algorand / algorand/pyteal

Inline subroutines

Abierto
#172 1 comentario 2 reacciones 0 asignados Ver en GitHub
Team Scytale
Lenguaje dominante
Python
Estrellas
288
Forks
138
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

## Summary

It would be a good optimization to identify subroutines that can be inlined directly into the caller code instead of being a legitimate subroutine. A common use case for subroutines is to increase readability, not necessarily because they are called frequently.

## Scope

If a subroutine is only called from one place, it will always be more efficient to inline that subroutine into the caller code.

If a subroutine is called from multiple places, it *might* be more efficient to inline it if it's body is sufficiently small, but this is a more complex case to analyze, and likely less important. I only include it here for completeness--this issue should probably not address it.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.