Hi Folks,

Just noticed this by myself.

Please always add comments, when you optimize code that results in much 
more complicate code, but should not
be refactored because of an optimization.

I forgot this when I worked on 
http://sourceforge.net/tracker/?func=detail&aid=3515619&group_id=167540&atid=843359

Pre:

Let x be the directory length (in characters / byte (depends on 
encoding)). Let y the number files in this directory and let
z be the average length of a filename (in characters / byte (depends on 
encoding)).

Transmitted bytes ...

Pre optimization:

Bytes for all filenames in a directory: x * y * z

After optimization:

Bytes for all filenames in a directory: x  + (y * z)

Regards,
Stefan


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dpp-devel mailing list
Dpp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dpp-devel

Reply via email to