Timeline for Optimizing GNU grep
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 11, 2017 at 16:06 | comment | added | Stéphane Chazelas | @DmitryGrigoryev, yes, most likely, still need to be mapped in the process address space and do the link editing. There's more like loading and parsing the locale data, parse the options, the environment... The point is that the cost of the regcomp() is diluted in all that overhead. The first thing to do when optimizing would be to avoid running several greps in the first place. | |
| Sep 11, 2017 at 16:01 | comment | added | Dmitry Grigoryev | Wouldn't the executable and the shared libraries stay in RAM buffers after processes termination (unless the OP is actually low on RAM)? | |
| Sep 11, 2017 at 15:43 | vote | accept | bergerg | ||
| Sep 11, 2017 at 15:43 | comment | added | bergerg |
I have veraion 3+ of grep so thats not the issue. Didn't even consider the forking overhead. I guess I'll try to stream everything through grep as is. Thanks.
|
|
| Sep 11, 2017 at 12:11 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 |
added 12 characters in body
|
| Sep 11, 2017 at 12:05 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 |
added 12 characters in body
|
| Sep 11, 2017 at 11:00 | history | answered | Stéphane Chazelas | CC BY-SA 3.0 |