- May
- 13,834
- 211
Well, I can control what my app does, but not what hundreds of others do ... others which I might want to redirect to NUL. Can you give me some idea why these times are so different and what my app is supposed to do to make redirection to NUL faster? Below, wc is an external and lc is a plugin version of "wc -l".
Code:
l:\projects\perms\release> timer & perms abcdefghij | wc -l & timer
Timer 1 on: 11:42:42
3628800
Timer 1 off: 11:42:43 Elapsed: 0:00:01.50
l:\projects\perms\release> timer & perms abcdefghij > nul & timer
Timer 1 on: 11:42:49
Timer 1 off: 11:43:15 Elapsed: 0:00:26.24
l:\projects\perms\release> timer & perms abcdefghij | lc & timer
Timer 1 on: 11:45:13
3628800
Timer 1 off: 11:45:15 Elapsed: 0:00:01.44