This tag indicates data that is not in full temporarily stored in memory, but processed directly after reception. It is used with processing program input character by character as against line by line or in chunks of a certain buffer size, as well as with fetching results of a database query one by one as against the whole result set at once (e. g. MySQL/PHP use vs. store result).
Questions tagged [unbuffered]
49 questions
2
votes
1 answer
How to reduce PHP/MySQL memory consumption?
PHP 7, mysqli, Reference: Example of how to use bind_result vs get_result
I am using unbuffered fetching (I hope) and wonder about the memory consumption $m. As I just fetch (test case) I would expect the memory $m to be almost constant. But it is…

Horst Walter
- 13,663
- 32
- 126
- 228
2
votes
1 answer
Reading other process' **unbuffered** output stream
I'm programming a little GUI for a file converter in java. The file converter writes its current progress to stdout. Looks like this:
Flow_1.wav: 28% complete, ratio=0,447
I wanted to illustrate this in a progress bar, so I'm reading the process'…

R2-D2
- 1,554
- 1
- 13
- 25
1
vote
0 answers
Is termios supported in msys2? If not, is there a portable way of getting unbuffered I/O?
The following code works on linux:
include
using namespace std;
static struct termios old_terminal_settings;
void setterm() {
tcgetattr(STDIN_FILENO, &old_terminal_settings);
// Set terminal to unbuffered input mode
struct…

Dov
- 8,000
- 8
- 46
- 75
1
vote
1 answer
Create unbuffered file descriptor in C under linux
For testing purposes I want to create a fully unbuffered file descriptor under linux in C.
It shall have a reading and a writing side.
It can be one of:
fifo
pipe
local or tcp socket
using stdin/stdout
virtual kernel file (e.g. /proc/uptime)
(I…

zomega
- 1,538
- 8
- 26
1
vote
0 answers
Install python package bin script with the unbuffered option passed to the python environment
I have a python script that is part of a package. The script source file some_script.py contains the following hash-bang at the beginning,
#!/usr/bin/env -S python3 -u
but after installation via pip, the script installed to my pythons bin directory…

Hans Wurst
- 227
- 2
- 15
1
vote
1 answer
How to append in file in Windows in UnBuffered mode using CreateFile
Every time my function is getting called it is overwriting to the file. Kindly note I am opening file in unbuffered mode using below flags.
FILE_FLAG_NO_BUFFERING | FILE_FLAG_WRITE_THROUGH
If I am using simple buffered mode it is working…

Ravindra Gupta
- 568
- 3
- 8
- 18
1
vote
2 answers
Buffering Standard Output (STDOUT)
By default, is STDOUT unbuffered? If not what is the type of its default buffering
Thanks

nitin_cherian
- 6,405
- 21
- 76
- 127
1
vote
1 answer
ZF2 unbuffered SQL MySQL select
I have a ZF2 console application where I need to read through eight million records in a MySQL database.
I am trying to do an unbuffered MySQL query but I cannot find the proper way using ether the Zend\Db\TableGateway\TableGateway or more directly…

James Stormes
- 13
- 5
1
vote
2 answers
Python Unbuffered Mode Causes Problems in Windows
Running the following, then trying to run interactive commands fails...
c:\> python -u -i test.py | tee output.txt
... test.py output ...
File "", line 1
^
SyntaxError: invalid syntax
>>> print "Hi"
File "", line 1
…

Tim Ludwinski
- 2,704
- 30
- 34
1
vote
1 answer
Go channels unbuffered
package main
import (
"fmt"
"time"
)
var message chan string
func main() {
message = make(chan string)
count := 6
flag := "first"
go func() {
fmt.Println("child go ",flag)
for i := 0; i < count; i++ {
…

Klaus
- 13
- 4
1
vote
0 answers
Unbuffered parsing of mplayer output in shell script
After trying several variants with stdbuf and unbuffer for parsing mplayer (and in my case also libdvdnav) output in a shell script, I didn't found a working solution. Here is my shell script without the part that parses the output - it just runs…

Sven
- 7,335
- 4
- 15
- 14
1
vote
1 answer
Unbuffered and Buffered streams
I am trying to write a program that just reads and write an unbuffered steam, and reads and writes a buffered stream. Following the example on the java docs, I've got this for my buffered stream, which works fine.
import java.io.FileReader;
import…

user2913004
- 123
- 1
- 3
- 8
0
votes
1 answer
Unbuffered Read from File--Ruby
I need a way to read from a file, but reloading the data from the disk each time. How can this be done, short of using File.reopen every time?

Linuxios
- 34,849
- 13
- 91
- 116
0
votes
1 answer
Azure git how to make Python script unbuffered
In an Azure git pipeline script (.yml), I can set up a Python task like this
- task: PythonScript@0
displayName: "Run scripts"
inputs:
scriptSource: 'filePath'
scriptPath: 'myscript.py'
arguments: '$a $b $c'
But it doesn't print…

twasbrillig
- 17,084
- 9
- 43
- 67
0
votes
0 answers
sqlcmd "unbuffered" output
How do I get unbuffered output when using sqlcmd
Lets say I have a file:
while (1=1)
begin
print '------------------------------------------------------'
select NOW=getdate(), DB=db_name()
waitfor delay…

Göran Schwarz
- 11
- 3