SI:LOAD-SOURCE opens files in buffered mode (ANSI C streams), to solve a performance problem in some NFS systems.

This commit is contained in:
Juan Jose Garcia Ripoll 2009-12-13 11:01:51 +01:00
parent 7c050399fa
commit 9a76ab3da3
2 changed files with 6 additions and 1 deletions

View file

@ -6,6 +6,10 @@ ECL 9.12.3:
- When converting rationals to floats, ECL now rounds instead of using the
routine in GMP, which truncates.
- LOAD open streams in buffered mode. It does not cause any significant
performance increase except in broken network filesystems that lack
buffering such as some implementations of NFS.
ECL 9.12.2:
===========

View file

@ -464,7 +464,8 @@ si_load_source(cl_object source, cl_object verbose, cl_object print)
strm = source;
} else {
strm = ecl_open_stream(source, smm_input, Cnil, Cnil, 8,
ECL_STREAM_DEFAULT_FORMAT, Cnil);
ECL_STREAM_DEFAULT_FORMAT | ECL_STREAM_C_STREAM,
Cnil);
if (Null(strm))
@(return Cnil)
}