Thread (25 messages) flat view 25 messages, 7 authors, 2016-06-15

Re: Git on Windows, CRLF issues

From: Jeff King <hidden>
Date: 2016-06-15 22:44:31

On Wed, Apr 23, 2008 at 11:13:27AM +0100, Johannes Schindelin wrote:
quoted
It was easy enough to work up the patch below, which allows

  git filter-branch --blob-filter 'tr a-z A-Z'

However, it's _still_ horribly slow.
You create a quite huge blob-cache, so you are pretty heavy on disk-I/O.  
Have you tried (as suggested in the man page) to run this on a huge RAM 
disk?  That should blow you away.
No, I didn't. But the disk I/O is pretty minimal. The blob cache is only
a few megabytes, and it stays entirely in Linux's disk cache. My disk
light only blinks every 5-10 seconds to flush dirty pages to disk.
I hoped that the rewrite-commits attempt was more than just that: an 
attempt.  So there is a point you could start from, doing things in C.

But I doubt that you get any joy: either your language is too limited, or 
you will get the same problems (fork() overhead) again.
Ah, right. I totally forgot about that effort. I will take a peek next
time I need to do some filtering.
quoted
Anyway, here is the patch. I don't know if it is even worth applying, 
since it is still painfully slow.
I like your patch:

Acked-by: Johannes Schindelin <redacted>
I think it could use some documentation updates. Avery, do you want to
try adding a CRLF example to the manpage?

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help