ADVPL & TLPP Refactoring Pro

•
13
•

Optimizes legacy and modern ADVPL/TLPP code for Totvs Protheus by applying high-performance refactoring patterns and modern architectural standards.

This skill provides specialized intelligence for refactoring ADVPL and TLPP source code within the Totvs Protheus ecosystem. It targets the most common performance bottlenecks and technical debt found in legacy R10/R11 environments, such as N+1 query loops, inefficient string concatenation, and outdated procedural UI wrappers. By leveraging the plugadvpl CLI, it guides developers through complex transitions like migrating AxCadastro to the modern MVC framework and ensuring safe character encoding between CP1252 and UTF-8, significantly reducing technical debt and improving system responsiveness.

主要功能

01Replaces inefficient DbSeek loops with high-performance Embedded SQL (anti-N+1).
02Enforces transactional integrity using Begin Transaction blocks for data consistency.
03Migrates legacy procedural UI (AxCadastro/Modelo2) to modern MVC architectures.
04Optimizes string memory allocation by replacing iterative concatenation with array joins.
05Automates CP1252 to UTF-8 encoding workflows to prevent compiler errors.
0613 GitHub stars

使用场景

01Modernizing legacy codebases for Totvs Protheus R12+ compatibility and MVC standards.
02Improving Protheus customization performance by resolving database round-trip bottlenecks.
03Automating the cleanup of hardcoded logic into dynamic parameters or central functions.