[PATCH 2/3] winex11: Don't recompute string length in remove_startup_notification.

Alexandre Julliard julliard at winehq.org
Tue Jan 19 06:36:22 CST 2016


Alex Henrie <alexhenrie24 at gmail.com> writes:

> The string length was computed during the loop earlier in the function.
> There is no need to call the O(n) strlen function to compute it again.

Saving a couple of cycles in a function that is executed at most once is
irrelevant, and not worth the code churn. Please avoid such "optimizations".

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list