Delphi: Which are the downsides of having unused units listed in the uses clause?

Posted by user193655 on Stack Overflow See other posts from Stack Overflow or by user193655
Published on 2010-12-23T14:42:25Z Indexed on 2010/12/23 16:54 UTC
Read the original article Hit count: 171

Filed under:
|

I use cnPack Uses cleaner, but in general which are the downsides of having useless units?

I know some of them:

1) of course if the unit is never used across the full project there will be useless resource consuption

2) the code insight will give useless results

3) the code insight will be slower

But imagine a simple case:

  • I have a project with 2 forms, I use StrUtils in one of them but I declared StrUtils in both of them... Is there any downside in temrs of memory consumption in this case or not?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about uses-clause