[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: print stdout and flush
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 26 May 2011 15:51:39 +0200
On Thu, May 26, 2011 at 3:28 PM, Cuero Bugot <cbugot@sierrawireless.com> wrote:
> 1) For the specific use case of print (mainly debug) I would not consider armful in term of performances.
Well, it is easy enough to change the buffering (see
http://www.lua.org/manual/5.1/manual.html#pdf-file:setvbuf)
io.stdout:setvbuf("no")
It's indeed an issue that people need to know about - e.g. in SciTE we
set the run Lua command to be
lua -e "io.stdout:setvbuf 'no'" $(FileName)
precisely because of this issue - at least on Windows.
steve d.