Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754998AbbDXOCQ (ORCPT ); Fri, 24 Apr 2015 10:02:16 -0400 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.232]:21266 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752840AbbDXOCN (ORCPT ); Fri, 24 Apr 2015 10:02:13 -0400 Date: Fri, 24 Apr 2015 10:02:06 -0400 From: Steven Rostedt To: Richard Weinberger Cc: David Herrmann , Borislav Petkov , Greg Kroah-Hartman , "Eric W. Biederman" , Linus Torvalds , Andrew Morton , Arnd Bergmann , One Thousand Gnomes , Tom Gundersen , Jiri Kosina , Andy Lutomirski , linux-kernel , Daniel Mack , Djalal Harouni Subject: Re: [GIT PULL] kdbus for 4.1-rc1 Message-ID: <20150424140206.GG24936@home.goodmis.org> References: <20150413190350.GA9485@kroah.com> <8738434yjk.fsf@x220.int.ebiederm.org> <20150422085827.GA6962@pd.tnic> <20150423191433.GB13607@kroah.com> <20150423205640.GR28327@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-RR-Connecting-IP: 107.14.168.142:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1014 Lines: 26 On Thu, Apr 23, 2015 at 11:33:19PM +0200, Richard Weinberger wrote: > > No it's not. O(256) equals O(1). > > Yeah, that's absolutely correct. > I think Boris wanted to say that iterating over all hash buckets > can be costly. You are thinking of 'k' (the constant), where you usually have k*O(1), where k does matter when comparing two algorithms with the same Big O value. And sometimes even different O() values if the 'n' is small enough. 100*O(1) vs 1*O(n), the latter is better if n < 100. Something that runs at O(n) but takes 1ms per n is a much worse algorithm than something that runs at O(n) and takes 1us per n. Both have the same O() notation, but which algorithm you use is obvious. But Greg is right, you O notation isn't applicable here. -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/