[Refactor] Inlining methods for TCStream and TEntryFile
Original Reporter info from Mantis: CuriousKit @CuriousKit
-
Reporter name: J. Gareth Moreton
Original Reporter info from Mantis: CuriousKit @CuriousKit
- Reporter name: J. Gareth Moreton
Description:
The following two patches seek to inline a number of very small static (non-virtual) methods for TEntryFile and TCStream, two internal compiler classes, in order to provide a slight performance gain by removing a function call in a chain.
Steps to reproduce:
Apply patches and confirm the compiler does not behave any differently.
Additional information:
The existing inline directives for getboolean/putboolean in TEntryFile were moved from the interface to the implementation section, since their presence in the implementation section, adjacent to the actual code, makes for easier maintenance and verification.
make cycle FPCOPT="-CriotR" passes without incident, as does a full "make distclean all install"