Re: [OT] quotes speedup sed

2013-10-01 Thread Jérémie Courrèges-Anglas
Denis Fondras open...@ledeuns.net writes: Hello all, Hi, This afternoon I stumbled upon a weirdness I can't explain. I hope some misc-guru can give a clue. I was parsing a 45kB html document on my OpenBSD 5.3 with the help of sed to extract a value and it was awfully slow. Quoting the

Re: [OT] quotes speedup sed

2013-10-01 Thread Denis Fondras
Hi Jérémie, Without the quotes the shell performs splitting, maybe ksh(1) is a bit slow at this... I'd rather download the page to a temp file rather than put that stuff into memory. Ok, thank you. This is actually faster when I use a tempfile. (sed is even faster than gsed in that case)

Re: [OT] quotes speedup sed

2013-10-01 Thread Alexander Hall
Without the quotes you get it all on a single line. A 45k line can be tough on a regex. /Alexander j...@wxcvbn.org wrote: Denis Fondras open...@ledeuns.net writes: Hello all, Hi, This afternoon I stumbled upon a weirdness I can't explain. I hope some misc-guru can give a clue. I was

Re: [OT] quotes speedup sed

2013-10-01 Thread Denis Fondras
Le 01/10/2013 16:56, Alexander Hall a écrit : Without the quotes you get it all on a single line. A 45k line can be tough on a regex. Thank you very much Alexander :) Denis

[OT] quotes speedup sed

2013-09-30 Thread Denis Fondras
Hello all, This afternoon I stumbled upon a weirdness I can't explain. I hope some misc-guru can give a clue. I was parsing a 45kB html document on my OpenBSD 5.3 with the help of sed to extract a value and it was awfully slow. Quoting the input string gave it a real boost : $ time echo