[fpc-pascal] try..finally vs interfaces performance

Mazola Winstrol mazofeifer at gmail.com
Thu Apr 14 10:19:01 CEST 2016

Recently i did some maintenance in a code of a colleague. I realized that
he designed several classes with interface support so he do not need to
protect the code blocks with try..finally to ensure that the instances are
released from memory.

Theoretically, which solution has higher performance? The traditional
approach (code protected try..finally) or classes with interfaces (no need
to protect the code. by otherside, classes with interfaces support have
lock operations)?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160414/dc3573f0/attachment.html>

More information about the fpc-pascal mailing list