Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] JGit slow?

On 2012-12-19 17:10, Alex Blewitt wrote:
On 19 Dec 2012, at 15:07, Shawn Pearce <spearce@xxxxxxxxxxx> wrote:

On Tue, Dec 18, 2012 at 11:15 PM, Duft Markus <Markus.Duft@xxxxxxxxxx> wrote:
Hm, actually i don’t even care whether comparison is fair in this case.
I think there are two issues JGit team needs to look at here...

This
time i have my user-hat on :D if the answer is “to fix it we need local
mode” then thats an answer too ;) I just noticed that in the situation i
have, i’m way faster with native git, so i had to switch.
We are missing the local mode optimization. Doing it the way CGit does
it from Java will be difficult, CGit uses filesystem hardlinks to
efficiently copy object and pack files on the same filesystem. Java
doesn't support these.
It does in Java 7, on filesystems that support it:

http://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#createLink(java.nio.file.Path,%20java.nio.file.Path)
And Java 6 will reach EOL in two months according to Oracle: http://www.oracle.com/technetwork/java/eol-135779.html

Not saying that it should be abandoned but would moving to Java 7 in newer releases of jgit be problematic?

- thomas


Back to the top