Re: Reading and Writing Files at the C level
- From: Don Porter <dgp@xxxxxxxxxxxxxx>
- Date: 17 Jul 2006 16:25:52 GMT
Damon Courtney wrote:
Is there any significant performance hit from using the Tcl
functions (Tcl_Read, Tcl_Write) at the C level over using the lower
functions (fread, fwrite or read, write)? This is for both Windows and
UNIX.
"significant" is always context dependent.
Tcl_Read and Tcl_Write apply at least the encoding, translation, and
EOF character processing of Tcl channels to the data that passes through.
They do more work than the low-level fread() and fwrite(), so they can't
be equivalently fast.
Whether they're fast enough, is an app-specific question only
measurement can resolve.
--
| Don Porter Mathematical and Computational Sciences Division |
| donald.porter@xxxxxxxx Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|
.
- References:
- Reading and Writing Files at the C level
- From: Damon Courtney
- Reading and Writing Files at the C level
- Prev by Date: Re: Announce: tkpath 0.2
- Next by Date: Re: How to get an icon into the Gnome notification area?
- Previous by thread: Re: Reading and Writing Files at the C level
- Next by thread: Writing C extensions for Tcl
- Index(es):
Relevant Pages
|