From: Prasanna Meda <pmeda@akamai.com>
To: Jan Kara <jack@suse.cz>
Cc: Theodore Ts'o <tytso@mit.edu>, akpm@osdl.org, linux-mm@kvack.org
Subject: Re: test_root reorder(Re: [patch] ext2: Apply Jack's ext3 speedups)
Date: Mon, 31 Jan 2005 11:19:57 -0800 [thread overview]
Message-ID: <41FE84DD.94D4B46B@akamai.com> (raw)
In-Reply-To: 20050131095148.GB2482@atrey.karlin.mff.cuni.cz
Jan Kara wrote:
> > Prasanna Meda wrote:
> >
> > > - Folded all three root checkings for 3, 5 and 7 into one loop.
> > > - Short cut the loop with 3**n < 5 **n < 7**n logic.
> > > - Even numbers can be ruled out.
> >
> > Without going to that complicated path, the better performance
> > is achieved with just reordering of the tests from 3,5,7 to 7,5.3, so
> > that average case becomes better. This is more simpler than
> > folding patch.
> I like a bit more just to reorder the tests (though I agree that your
> joined tests for 3,5,7 are probably faster) - it looks much more
> readable...
Yes, Also reordering is almost same as folding aproach in
experimental test. So, there is no need of going to that complicated
path. Just reorder 7, 5 and 3 and check for evenness.
Thanks,
Prasanna.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
prev parent reply other threads:[~2005-01-31 19:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-27 7:22 [patch] ext2: Apply Jack's ext3 speedups pmeda
2005-01-27 20:52 ` Theodore Ts'o
2005-01-27 21:11 ` Andrew Morton
2005-01-27 21:41 ` Theodore Ts'o
2005-01-29 1:56 ` Prasanna Meda
2005-01-29 2:00 ` Prasanna Meda
2005-01-29 3:11 ` test_root reorder(Re: [patch] ext2: Apply Jack's ext3 speedups) Prasanna Meda
2005-01-31 9:51 ` Jan Kara
2005-01-31 19:19 ` Prasanna Meda [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41FE84DD.94D4B46B@akamai.com \
--to=pmeda@akamai.com \
--cc=akpm@osdl.org \
--cc=jack@suse.cz \
--cc=linux-mm@kvack.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.