From: Austin Ziegler Date: 2007-11-17T23:11:25+09:00 Subject: Re: Not feeling the flog… On 11/17/07, Eric Hodel wrote: > Total complexity of your project is 2264ish. 20% (486/2264) of your > complexity lies in RGB, and I'm guessing that its all building up > your constants (from the names in your report). Pretty much. > What does `flog ... | grep -v '^ '` give (just the top-level stuff) Total score = 2306.67251009945 RGB#none: (486.2) AdobeColor#initialize: (226.8) AdobeColor#to_aco: (125.4) RGB#to_hsl: (76.0) HSL#to_rgb: (75.8) MonoContrast#regenerate: (70.0) CMYK#to_rgb: (54.9) Metallic#none: (40.6) Gimp#initialize: (38.2) AdobeColor#readwords: (34.2) RGB#to_cmyk: (33.9) CMYK#==: (32.2) HSL#mix_with: (32.0) RGB#from_html: (30.0) AdobeColor#readutf16: (29.7) I think I'm getting it now. Inasmuch as the reported complexity indicates the likelihood of harder to understand code or potentially slower code, the percentage of complexity makes a difference. Not a lot of value for the project I'm flogging right now (the successor to color-tools that will be used in the upcoming PDF::Writer 1.1.4). Thanks. -austin -- Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ * austin@halostatue.ca * http://www.halostatue.ca/feed/ * austin@zieglers.ca