help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Check for redundancy


From: Stefan Monnier
Subject: Re: Check for redundancy
Date: Wed, 24 Jun 2015 23:23:41 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> To throw an unorthodox idea into the air, one could measure the compression
> ratio (e.g. with gzip) and relate it to the compression ratio of "known
> good" code (I know, I know... :-)

Compressing a file does give you some information about the amount of
redundancy in that code, but that might not be the redundancy you care
about (e.g. using longer identifiers will give you higher compression
ratios, but that's usually not what's considered "redundancy in code").
Also, it's not immediately clear how to go from this to finding the
actual redundancy.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]