From: Marco Costalba <mcostalba@gmail.com>
To: Abdelrazak Younes <younes@lyx.org>
Cc: git@vger.kernel.org
Subject: Re: [QGIT PATCH/RFC]
Date: Thu, 5 Nov 2009 21:25:32 +0100 [thread overview]
Message-ID: <e5bfff550911051225s13c6e39dh355dc3ab1c0623f@mail.gmail.com> (raw)
In-Reply-To: <4AF2AAFD.9000309@lyx.org>
On Thu, Nov 5, 2009 at 11:37, Abdelrazak Younes <younes@lyx.org> wrote:
>
> I recompiled qgit with the Qt version and I didn't notice any performance
> problem with a big repo (Qt).
>
In git we don't need to compute hashes of sha strings because they are
already hashed !
That's the idea of using a custom hashing function that does nothing
but taking the first chars of the sha string. Instead the general
purpose Qt hashing must do real work because it has to work for any
string.
When I tested I _found_ a speed difference, but now I don't remember
of how much. Be sure you have warm cache when doing the test (press
F5) for few times to be sure all is in RAM.
> Just tell me if this is not interesting to you and I'll shut up :-)
>
No, it is very interesting indeed. My bad I have no time for net access today.
If QByteArray is faster then QLatin1String() we should definitely
change. But if I don't remember wrong QLatin1String() is already
implemented above a QByteArray and the methods that we use are
inherited directly from a QByteArray, but I may be wrong. I don't have
access to the sources now. I only remember that when I implemented
that part it took a good amount of time and testing ;-)
Thanks
Marco
next prev parent reply other threads:[~2009-11-05 20:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-04 14:56 [QGIT PATCH/RFC] Abdelrazak Younes
2009-11-05 9:41 ` Marco Costalba
2009-11-05 9:50 ` Abdelrazak Younes
2009-11-05 10:13 ` Abdelrazak Younes
2009-11-05 10:19 ` Abdelrazak Younes
2009-11-05 10:37 ` Abdelrazak Younes
2009-11-05 20:25 ` Marco Costalba [this message]
2009-11-05 20:27 ` Marco Costalba
2009-11-06 8:15 ` Abdelrazak Younes
2009-11-06 8:16 ` Abdelrazak Younes
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=e5bfff550911051225s13c6e39dh355dc3ab1c0623f@mail.gmail.com \
--to=mcostalba@gmail.com \
--cc=git@vger.kernel.org \
--cc=younes@lyx.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).