ttroxell ([info]ttroxell) wrote,
@ 2005-10-11 04:24:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
babygrep
I made a baby grep.

sushi% ls -lh babygrep
-rwxr-xr-x 1 xtat xtat 3.6K 2005-10-11 04:10 babygrep
sushi% ls -lh /bin/grep
-rwxr-xr-x 1 root root 70K 2005-03-10 18:09 /bin/grep

I am wondering if using something similar would make logcheck faster. It needs work in any case. I just think it's cute.

code



(3 comments) - (Post a new comment)


[info]doom_ihl_varia
2005-10-11 11:41 am UTC (link)
sushi% fsck /bin/grep; sleep 270d

(Reply to this)

smaller != faster
(Anonymous)
2005-10-11 09:53 pm UTC (link)
Part of grep's job is doing regexen as fast as possible. Fast code is often not small code. Also remember that while grep does much of the regex work itself, you're relying on regex code from the standard libraries.

(Reply to this) (Thread)

Re: smaller != faster
[info]xtat
2005-10-11 10:06 pm UTC (link)
Ahh. I figured grep just relied on regex in libc6. The source tells a different story. Thanks!

(Reply to this) (Parent)


(3 comments) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…